fix a remote_node_ip calling context

Using remote_node_ip to build a hash needs to explicitly
request a scalar context.
This commit is contained in:
Wolfgang Bumiller 2015-07-28 13:51:21 +02:00 committed by Dietmar Maurer
parent 6bc821039a
commit 5301228562

View 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,