From 0e5e654c31c3cd781c860add3b670eae7ab194cc Mon Sep 17 00:00:00 2001 From: Josh Stompro Date: Tue, 23 Jan 2018 13:19:20 -0600 Subject: [PATCH] LP#1745001 - action_trigger_runner.pl max-sleep argument broken. Fix the --max-sleep argument so it accepts an integer number of max seconds to sleep waiting for a lock file to disappear. Testing: Before Fix: Add --max-sleep=60 to action_trigger_runner.pl and view the error message that results. After Fix: Run the same command and notice that it no longer errors out. Signed-off-by: Josh Stompro Signed-off-by: Cesar Velez Signed-off-by: Galen Charlton --- Open-ILS/src/support-scripts/action_trigger_runner.pl.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/support-scripts/action_trigger_runner.pl.in b/Open-ILS/src/support-scripts/action_trigger_runner.pl.in index 1c217bc3c2..c777cfebbc 100755 --- a/Open-ILS/src/support-scripts/action_trigger_runner.pl.in +++ b/Open-ILS/src/support-scripts/action_trigger_runner.pl.in @@ -42,7 +42,7 @@ my $opt_gran_only = undef; (-f $opt_custom_filter) or undef($opt_custom_filter); # discard default if no file exists GetOptions( - 'max-sleep' => \$opt_max_sleep, + 'max-sleep=i' => \$opt_max_sleep, 'osrf-config=s' => \$opt_osrf_config, 'run-pending' => \$opt_run_pending, 'hooks=s' => \$opt_hooks, -- 2.11.0