From 5301228562a3d283f473aac187bb539de78ec20e Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Tue, 28 Jul 2015 13:51:21 +0200 Subject: [PATCH] fix a remote_node_ip calling context Using remote_node_ip to build a hash needs to explicitly request a scalar context. --- PVE/API2/Cluster.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/API2/Cluster.pm b/PVE/API2/Cluster.pm index 21876ff8..008674dc 100644 --- a/PVE/API2/Cluster.pm +++ b/PVE/API2/Cluster.pm @@ -426,7 +426,7 @@ __PACKAGE__->register_method({ type => 'node', id => "node/$nodename", name => $nodename, - ip => PVE::Cluster::remote_node_ip($nodename), + ip => scalar(PVE::Cluster::remote_node_ip($nodename)), 'local' => 1, nodeid => 0, online => 1, -- 2.39.5