diff options
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-x | check_postgres.pl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/check_postgres.pl b/check_postgres.pl index 47e42ed50..598aa9869 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -975,6 +975,8 @@ sub run_command { $group{$vname} = $conn->{$vname}; } + last GROUP if ! $foundgroup and @target; + $gbin++; ## Now break the newly created group into individual targets @@ -997,11 +999,11 @@ sub run_command { push @target, \%temptarget; $tbin++; - redo; + redo TARGET; } ## end TARGET last GROUP if ! $foundgroup; - redo; + redo GROUP; } ## end GROUP if (! @target) { |