[elbe-devel] [PATCH 67/75] initvmaction: Fix Pylint
Olivier Dion
dion at linutronix.de
Mon May 25 17:43:00 CEST 2020
51:0: R0205: (useless-object-inheritance)
629:16: W0612: (unused-variable)
Signed-off-by: Olivier Dion <dion 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 f8572402..7c60cc37 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 = {}
@@ -626,13 +627,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.26.2
More information about the elbe-devel
mailing list