]> git.proxmox.com Git - pve-cluster.git/commit - data/PVE/Cluster.pm
remote_node_ip: use same return signature for both branches
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 2 May 2017 09:51:20 +0000 (11:51 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 4 May 2017 06:44:45 +0000 (08:44 +0200)
commit1483016087fb86d88ad7c321ae32bdc2f4e800ec
tree2bc4d8c4d07c1cb038e5b46ec9611ec772957904
parent10474e5299adb6fb7c238bede0fee3d823509e25
remote_node_ip: use same return signature for both branches

We have two return statements in the remote_node_ip submethod, one
checked if we are in list context and adapt the returning values
accordingly and one just returned a list, independent of the
context.
Adapt the second one and check the context there.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
data/PVE/Cluster.pm