[elbe-devel] [PATCH 12/13] pylint: fix undefined variable self

Manuel Traut manut at linutronix.de
Wed Aug 29 21:07:33 CEST 2018


initvmaction.py:49, PyLint, Priority: High
Undefined variable 'self'

..by removing the never called code

Signed-off-by: Manuel Traut <manut at linutronix.de>
---
 elbepack/initvmaction.py | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/elbepack/initvmaction.py b/elbepack/initvmaction.py
index 8e1128f9..615a63ae 100644
--- a/elbepack/initvmaction.py
+++ b/elbepack/initvmaction.py
@@ -45,11 +45,6 @@ def ensure_outdir(opt):
     print("Saving generated Files to %s" % opt.outdir)
 
 
-def ensure_initvm_defined():
-    if self.initvm is None:
-        sys.exit(20)
-
-
 class InitVMError(Exception):
     def __init__(self, msg):
         Exception.__init__(self, msg)
-- 
2.18.0




More information about the elbe-devel mailing list