From 2dfb07a69baa9d6239fbdf7cbdc71753efdef0df Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Thu, 18 Feb 2021 10:39:39 -0500 Subject: [PATCH] Must set StateId as well as it cannot be Null. Default to 1 --- scripts/zmrecover.pl.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/zmrecover.pl.in b/scripts/zmrecover.pl.in index c52537b4e..d6fe578f6 100644 --- a/scripts/zmrecover.pl.in +++ b/scripts/zmrecover.pl.in @@ -224,6 +224,7 @@ Debug("@Monitors"); $$Event{RelativePath} = join('/', $day_dir, $event_path); $$Event{Scheme} = 'Deep'; $$Event{Name} = "Event $event_id recovered"; + $$Event{StateId} = 1; $Event->MonitorId( $monitor_dir ); $Event->StorageId( $Storage->Id() ); $Event->DiskSpace( undef ); @@ -287,6 +288,7 @@ Debug("@Monitors"); $$Event{RelativePath} = join('/', $day_dir, $event_dir); $$Event{Scheme} = 'Deep'; $$Event{Name} = "Event $event_id recovered"; + $$Event{StateId} = 1; $Event->MonitorId( $monitor_dir ); $Event->Width( $Monitor->Width() ); $Event->Height( $Monitor->Height() ); @@ -352,6 +354,7 @@ Debug("@Monitors"); $$Event{Scheme} = 'Medium'; $$Event{RelativePath} = $event_dir; $$Event{Name} = "Event $event_id recovered"; + $$Event{StateId} = 1; $Event->MonitorId( $monitor_dir ); $Event->Width( $Monitor->Width() ); $Event->Height( $Monitor->Height() ); @@ -393,6 +396,7 @@ Debug("@Monitors"); if ( confirm() ) { $$Event{Scheme} = 'Shallow'; $$Event{Name} = "Event $event recovered"; + $$Event{StateId} = 1; #$$Event{Path} = $event_path; $Event->MonitorId( $monitor_dir ); $Event->Width( $Monitor->Width() );