Fix crash when config file missing
This commit is contained in:
parent
22a3e8d60f
commit
dd779d242b
@ -606,7 +606,15 @@ def _expand_inputs(inputs):
|
|||||||
|
|
||||||
|
|
||||||
def _read_config(config_file):
|
def _read_config(config_file):
|
||||||
config_args = {}
|
config_args = {'inputs': None,
|
||||||
|
'output': None,
|
||||||
|
'exclude': None,
|
||||||
|
'keep': -1,
|
||||||
|
'host': None,
|
||||||
|
'username': None,
|
||||||
|
'ssh_keyfile': None,
|
||||||
|
'remote_sudo': False,
|
||||||
|
'numeric_ids': False}
|
||||||
|
|
||||||
if not os.path.isfile(config_file):
|
if not os.path.isfile(config_file):
|
||||||
logger.warning('Config file %s does not exist', config_file)
|
logger.warning('Config file %s does not exist', config_file)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user