fix(plugin):avoid perl error when checking Elastic basic instances (#2990)

This commit is contained in:
Simon Bomm 2021-07-26 10:58:34 +02:00 committed by GitHub
parent 82b6dc7636
commit ff0917875c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ sub manage_selection {
status => $result->{license}->{status},
issued_to => $result->{license}->{issued_to},
issue_date => $result->{license}->{issue_date},
expiry_date_in_seconds => int($result->{license}->{expiry_date_in_millis} / 1000)
expiry_date_in_seconds => defined($result->{license}->{expiry_date_in_millis}) ? int($result->{license}->{expiry_date_in_millis} / 1000) : "n/a"
};
}