mirror of
https://github.com/ovh/the-bastion.git
synced 2025-02-27 00:54:26 +08:00
fix: accountList: crash in some cases
This commit is contained in:
parent
340ebd0bec
commit
f77b8a25d3
1 changed files with 1 additions and 1 deletions
|
@ -146,7 +146,7 @@ foreach my $account (sort keys %$accounts) {
|
|||
|
||||
$states{'last_activity'} = undef;
|
||||
$states{'last_activity_timestamp'} = undef;
|
||||
my $seconds = $fnret->value->{'seconds'};
|
||||
my $seconds = ($fnret->value ? $fnret->value->{'seconds'} : undef);
|
||||
if (defined $seconds) {
|
||||
$fnret = OVH::Bastion::duration2human(seconds => $seconds, tense => "past");
|
||||
if ($fnret) {
|
||||
|
|
Loading…
Reference in a new issue