[pve-devel] [PATCH manager 2/2] pvesh: allow_nonref while decoding proxied output.

Stoiko Ivanov s.ivanov at proxmox.com
Tue Nov 27 17:46:06 CET 2018


Signed-off-by: Stoiko Ivanov <s.ivanov at proxmox.com>
---
 PVE/CLI/pvesh.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/CLI/pvesh.pm b/PVE/CLI/pvesh.pm
index 56f7b70b..c86fafe6 100755
--- a/PVE/CLI/pvesh.pm
+++ b/PVE/CLI/pvesh.pm
@@ -123,7 +123,7 @@ sub proxy_handler {
     PVE::Tools::run_command($remcmd, errmsg => "proxy handler failed",
 			    outfunc => sub { $json .= shift });
 
-    return decode_json($json);
+    return from_json($json, {utf8 => 1, allow_nonref => 1});
 }
 
 sub extract_children {
-- 
2.11.0





More information about the pve-devel mailing list