23 lines
835 B
Diff
23 lines
835 B
Diff
|
Subject: interface: read the start mode from the inactive conf XML
|
||
|
From: Giuseppe Scrivano gscrivan@redhat.com Thu May 14 16:27:55 2015 +0200
|
||
|
Date: Fri May 15 09:14:09 2015 +0200:
|
||
|
Git: 4b5c836a16da18e58e013a0fa6c3ca4caba00b94
|
||
|
|
||
|
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1154480
|
||
|
|
||
|
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
|
||
|
|
||
|
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()
|