[elbe-devel] [PATCH v2 59/66] initvmaction: Fix Pylint
Olivier Dion
dion at linutronix.de
Fri Jun 5 19:07:23 CEST 2020
51:0: R0205: (useless-object-inheritance)
629:16: W0612: (unused-variable)
Signed-off-by: Olivier Dion <dion at linutronix.de>
Reviewed-by: Torben Hohn <torben.hohn at linutronix.de>
---
elbepack/initvmaction.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/elbepack/initvmaction.py b/elbepack/initvmaction.py
index 9eb1aa8f..6c49cfad 100644
--- a/elbepack/initvmaction.py
+++ b/elbepack/initvmaction.py
@@ -47,7 +47,8 @@ class InitVMError(Exception):
def __init__(self, msg):
Exception.__init__(self, msg)
-
+# TODO:py3 Remove object inheritance
+# pylint: disable=useless-object-inheritance
class InitVMAction(object):
actiondict = {}
@@ -612,13 +613,11 @@ class SubmitAction(InitVMAction):
if args[0].endswith('.xml'):
# We have an xml file, use that for elbe init
xmlfile = args[0]
- url_validation = ''
elif args[0].endswith('.iso'):
# We have an iso image, extract xml from there.
tmp = extract_cdrom(args[0])
xmlfile = tmp.fname('source.xml')
- url_validation = '--skip-urlcheck'
cdrom = args[0]
else:
print(
--
2.27.0
More information about the elbe-devel
mailing list