From: Devops Date: Fri, 7 Jul 2017 15:39:39 +0000 (+0100) Subject: bin/ovh-api X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=3d0a9d9fa8fa077d2ef3a95717cca534c9836198;p=nb.git bin/ovh-api --- diff --git a/bin/ovh-api b/bin/ovh-api index 8835a1e5..31541708 100755 --- a/bin/ovh-api +++ b/bin/ovh-api @@ -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; }