From 97d941ef81353a69797f7ab5d56b990a09db1b8c Mon Sep 17 00:00:00 2001 From: Devops Date: Mon, 3 Jul 2017 16:59:41 +0100 Subject: [PATCH] bin/ovh-api --- bin/ovh-api | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/ovh-api b/bin/ovh-api index d70bcfa7..14a76dfa 100755 --- a/bin/ovh-api +++ b/bin/ovh-api @@ -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; -- 2.47.3