mirror of
https://github.com/thegeeklab/ansible-later.git
synced 2024-11-25 14:20:45 +00:00
fix loglevel parsing
This commit is contained in:
parent
5d805d11c8
commit
885332042b
@ -81,8 +81,8 @@ class Settings(object):
|
||||
with utils.open_file(config) as stream:
|
||||
s = stream.read()
|
||||
sdict = utils.safe_load(s)
|
||||
sdict["logging"]["level"] = sdict["logging"]["level"].upper()
|
||||
if self._validate(sdict):
|
||||
sdict["logging"]["level"] = sdict["logging"]["level"].upper()
|
||||
anyconfig.merge(defaults, sdict, ac_merge=anyconfig.MS_DICTS)
|
||||
|
||||
if cli_options and self._validate(cli_options):
|
||||
@ -100,7 +100,7 @@ class Settings(object):
|
||||
"exclude_files": []
|
||||
},
|
||||
"logging": {
|
||||
"level": logging.getLevelName(30),
|
||||
"level": "WARNING",
|
||||
"json": False
|
||||
},
|
||||
"ansible": {
|
||||
|
Loading…
Reference in New Issue
Block a user