From ff0917875c8c8cae582dd6542502b4894ed50645 Mon Sep 17 00:00:00 2001 From: Simon Bomm Date: Mon, 26 Jul 2021 10:58:34 +0200 Subject: [PATCH] fix(plugin):avoid perl error when checking Elastic basic instances (#2990) --- database/elasticsearch/restapi/mode/license.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/elasticsearch/restapi/mode/license.pm b/database/elasticsearch/restapi/mode/license.pm index 078011993..dc4a0991d 100644 --- a/database/elasticsearch/restapi/mode/license.pm +++ b/database/elasticsearch/restapi/mode/license.pm @@ -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" }; }