From: root Date: Tue, 25 Jul 2017 13:04:40 +0000 (+0100) Subject: bin/ovh-api X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=214207e077f08f43e2d1bb0f5b2683cbeebe6933;p=nb.git bin/ovh-api --- diff --git a/bin/ovh-api b/bin/ovh-api index 1ff77ec5..c2a73aed 100755 --- a/bin/ovh-api +++ b/bin/ovh-api @@ -270,7 +270,7 @@ sub url_query { print JSON::encode_json(\@_); } else { local $_ = query($url,$method,$body); - print ref($_) eq '' ? $_ : JSON::encode_json($_); + print ref($_) eq '' ? $_ : JSON::encode_json($_) if defined $_; #print JSON::encode_json(query($url,$method,$body)); } print "\n";