[pve-devel] [PATCH] fix a remote_node_ip calling context

Wolfgang Bumiller w.bumiller at proxmox.com
Tue Jul 28 13:51:21 CEST 2015


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 21876ff..008674d 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.1.4





More information about the pve-devel mailing list