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

index d70bcfa7882ae833efd37c0e8974999f79c43b10..14a76dfaa971d23b1a5e326eb4c9a076a88d7572 100755 (executable)
@@ -139,10 +139,10 @@ sub ip_move {
 
   my $routed = $rec->{routedTo}{serviceName};
   $localhost ne $routed or die "$ip is already routed to $localhost!\n";
-
   grep {$ip eq $_} ips() or die "$ip is is not installed on $localhost!\n";
-  require Data::Dumper;
-  die Data::Dumper::Dumper([$localhost,$routed,$rec]);
+
+  require Data::Dumper; die Data::Dumper::Dumper([$localhost,$routed,$rec]);
+
   local $_ = _query("/ip/$ip/move",'POST',{'to' => $localhost});
        print JSON::encode_json($_);
   exit;