[virt-tools-list] [virt-manager PATCH] virtinst: fix a pylint warning

Chen Hanxiao chenhanxiao at cn.fujitsu.com
Wed Sep 10 05:32:26 UTC 2014


fix a "attribute-defined-outside-init" warning.
We set installer.livecd in virt-install.

Signed-off-by: Chen Hanxiao <chenhanxiao at cn.fujitsu.com>
---
 virtinst/installer.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/virtinst/installer.py b/virtinst/installer.py
index 4482ae6..8e6e143 100644
--- a/virtinst/installer.py
+++ b/virtinst/installer.py
@@ -58,6 +58,7 @@ class Installer(object):
         self._location = None
 
         self.cdrom = False
+        self.livecd = False
         self.extraargs = None
 
         self.initrd_injections = []
-- 
1.9.0




More information about the virt-tools-list mailing list