Get command field if it is not defined in alert or action

This commit is contained in:
Calvo 2021-07-22 11:39:00 +02:00
parent 51ca2de1e5
commit 72d57bc067
1 changed files with 1 additions and 2 deletions

View File

@ -1106,8 +1106,7 @@ sub pandora_execute_action ($$$$$$$$$;$) {
$field20 = defined($alert->{'field20'}) && $alert->{'field20'} ne "" ? $alert->{'field20'} : $action->{'field20'};
}
print Dumper($field1);
# Recovery fields, thanks to Kato Atsushi
if ($alert_mode == RECOVERED_ALERT) {
# Field 1 is a special case where [RECOVER] prefix is not added even when it is defined