mirror of
https://github.com/zerwes/ansible-fqcn-converter.git
synced 2025-02-25 18:55:30 -06:00
fixed : Value 'config' is unsubscriptable
This commit is contained in:
parent
743346f516
commit
94f081ad5d
@ -187,11 +187,11 @@ config = False
|
|||||||
if args.config:
|
if args.config:
|
||||||
try:
|
try:
|
||||||
with open(args.config) as ymlfile:
|
with open(args.config) as ymlfile:
|
||||||
config = yaml.load(ymlfile, Loader=yaml.BaseLoader)
|
_config = yaml.load(ymlfile, Loader=yaml.BaseLoader)
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
pass
|
pass
|
||||||
if config and 'exclude_paths' in config.keys():
|
if _config and 'exclude_paths' in _config.keys():
|
||||||
for ep in config['exclude_paths']:
|
for ep in _config['exclude_paths']:
|
||||||
exclude_paths.append(os.path.abspath(ep))
|
exclude_paths.append(os.path.abspath(ep))
|
||||||
|
|
||||||
# find files to parse
|
# find files to parse
|
||||||
|
Loading…
Reference in New Issue
Block a user