mirror of
https://github.com/zerwes/ansible-fqcn-converter.git
synced 2025-02-25 18:55:30 -06:00
fix config handling if no exclude_paths defined
This commit is contained in:
parent
bd50dd14c8
commit
48449934ef
@ -187,7 +187,7 @@ if args.config:
|
||||
config = yaml.load(ymlfile, Loader=yaml.BaseLoader)
|
||||
except FileNotFoundError:
|
||||
pass
|
||||
if config and config['exclude_paths']:
|
||||
if config and 'exclude_paths' in config.keys():
|
||||
for ep in config['exclude_paths']:
|
||||
exclude_paths.append(os.path.abspath(ep))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user