[virt-tools-list] [virt-manager PATCH] interface: read the start mode from the inactive conf XML
Cole Robinson
crobinso at redhat.com
Thu May 14 22:27:25 UTC 2015
On 05/14/2015 10:37 AM, Giuseppe Scrivano wrote:
> 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()
>
ACK
- Cole
More information about the virt-tools-list
mailing list