[pve-devel] [PATCH pve-manager] Ceph: fix old interfaces access in find_node_ip

Wolfgang Bumiller w.bumiller at proxmox.com
Wed Aug 12 08:53:01 CEST 2015


Fixes #681
---
 PVE/API2/Ceph.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/API2/Ceph.pm b/PVE/API2/Ceph.pm
index b7eea84..8a8581f 100644
--- a/PVE/API2/Ceph.pm
+++ b/PVE/API2/Ceph.pm
@@ -772,7 +772,7 @@ my $find_node_ip = sub {
     my $ifaces = $config->{ifaces};
 
     foreach my $iface (keys %$ifaces) {
-	my $d = $config->{$iface};
+	my $d = $ifaces->{$iface};
 	next if !$d->{$id};
 	my $a = Net::IP->new($d->{$id});
 	next if !$a;
-- 
2.1.4





More information about the pve-devel mailing list