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

Lin Ma lma at suse.com
Thu Sep 6 07:46:28 UTC 2018


Signed-off-by: Lin Ma <lma at suse.com>
---
 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




More information about the virt-tools-list mailing list