(plugin) cloud::aws::health::mode::events - fix error in output caused by type of returned time (#3686)

This commit is contained in:
lchrdn 2022-05-25 11:52:02 +02:00 committed by GitHub
parent 1079086e10
commit 3d59cddeb9
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ sub manage_selection {
$events->{$_}->{region},
$events->{$_}->{statusCode},
$events->{$_}->{eventTypeCode},
scalar(localtime($events->{$_}->{startTime})),
$events->{$_}->{startTime} =~ m/^\d{4}-\d{2}-\d{2}/ ? $events->{$_}->{startTime} : scalar(localtime($events->{$_}->{startTime})),
$entity
)
);