]> git.proxmox.com Git - pve-manager.git/commitdiff
fix a remote_node_ip calling context
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 28 Jul 2015 11:51:21 +0000 (13:51 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 30 Jul 2015 06:58:04 +0000 (08:58 +0200)
Using remote_node_ip to build a hash needs to explicitly
request a scalar context.

PVE/API2/Cluster.pm

index 21876ff81b3696c454cd8ffe97654a4ea77eb049..008674dce9ac7f60b0530f8412a976977e6caf61 100644 (file)
@@ -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,