From 214207e077f08f43e2d1bb0f5b2683cbeebe6933 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 25 Jul 2017 14:04:40 +0100 Subject: [PATCH] bin/ovh-api --- bin/ovh-api | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; -- 2.47.3