1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

account for absense of config file

This commit is contained in:
Brian Coca 2017-06-14 11:38:35 -04:00
parent dfcf43efa9
commit 6b99f0d65c

View file

@ -89,6 +89,7 @@ class ConfigManager(object):
# TODO: take list of files with merge/nomerge # TODO: take list of files with merge/nomerge
parser = None parser = None
if cfile:
if ftype == 'ini': if ftype == 'ini':
parser = configparser.ConfigParser() parser = configparser.ConfigParser()
try: try: