[virt-tools-list] [virt-manager PATCH] interface: read the start mode from the inactive conf XML
Giuseppe Scrivano
gscrivan at redhat.com
Thu May 14 14:37:19 UTC 2015
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1154480
Signed-off-by: Giuseppe Scrivano <gscrivan at redhat.com>
---
virtManager/interface.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/virtManager/interface.py b/virtManager/interface.py
index bd1e2ba..dc6f4da 100644
--- a/virtManager/interface.py
+++ b/virtManager/interface.py
@@ -101,7 +101,7 @@ class vmmInterface(vmmLibvirtObject):
return "Interface"
def get_startmode(self):
- return self.get_xmlobj().start_mode or "none"
+ return self.get_xmlobj(inactive=True).start_mode or "none"
def set_startmode(self, newmode):
xmlobj = self._make_xmlobj_to_define()
--
2.1.0
More information about the virt-tools-list
mailing list