[virt-manager PATCH 2/3] Fix error while refreshing ip if the virtual nic only has ipv6

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Lin Ma <lma@xxxxxxxx>
---
 virtManager/details.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/virtManager/details.py b/virtManager/details.py
index 1e619e78..0d02805f 100644
--- a/virtManager/details.py
+++ b/virtManager/details.py
@@ -2756,7 +2756,7 @@ class vmmDetails(vmmGObjectUI):
         self.widget("network-link-state-checkbox").set_active(state)
 
         ipv4, ipv6 = self.vm.get_interface_addresses(net)
-        label = ipv4
+        label = ipv4 or ""
         if ipv6:
             if label:
                 label += "\n"
-- 
2.15.1

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list



[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux