pylint

parent e611771a
...@@ -48,7 +48,7 @@ class EntryPointNotImplementedError(NotImplementedError): ...@@ -48,7 +48,7 @@ class EntryPointNotImplementedError(NotImplementedError):
def __init__(self, *args, **kw_args): def __init__(self, *args, **kw_args):
NotImplementedError.__init__(self, *args, **kw_args) NotImplementedError.__init__(self, *args, **kw_args)
def checkSlaposCfg (): def checkSlaposCfg():
""" """
Check if a slapos configuration file was given as a argument. Check if a slapos configuration file was given as a argument.
If a slapos configuration file is given it return True else False If a slapos configuration file is given it return True else False
...@@ -80,12 +80,14 @@ def checkOption(option): ...@@ -80,12 +80,14 @@ def checkOption(option):
sys.argv = sys.argv + option[1:] sys.argv = sys.argv + option[1:]
return True return True
def call(fun, config=False, option=[]): def call(fun, config=False, option=None):
""" """
Add missing options to sys.argv Add missing options to sys.argv
Add config if asked and it is missing Add config if asked and it is missing
Call function fun Call function fun
""" """
if option is None:
option = []
for element in option: for element in option:
checkOption(element) checkOption(element)
if config: if config:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment