]> git.nbdom.net Git - nb.git/commitdiff
bin/ovh-api
authorDevops <sys@15gifts.com>
Fri, 7 Jul 2017 15:39:39 +0000 (16:39 +0100)
committerDevops <sys@15gifts.com>
Fri, 7 Jul 2017 15:39:39 +0000 (16:39 +0100)
bin/ovh-api

index 8835a1e5480a0526a5c47e47961a6fe4f3af2c27..315417083bdc4bc6d71acb9bd4e50e799d4d8f62 100755 (executable)
@@ -66,7 +66,7 @@ if ($Opt{'ip-is-routed'}) {
   my @routed = ip_routed($Opt{'ip-is-routed'});
   my $localhost = hostname();
   exit 0 if grep {$_ eq $localhost} map {$_->[0]} grep {$_->[1] eq 'master'} @routed;
-  exit 0 if grep {$_ eq $localhost} map {$_->[0]} grep {$_->[1] eq 'slave'} @routed;
+  exit 2 if grep {$_ eq $localhost} map {$_->[0]} grep {$_->[1] eq 'slave'} @routed;
   exit 1;
 }