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:
|
with utils.open_file(config) as stream:
|
||||||
s = stream.read()
|
s = stream.read()
|
||||||
sdict = utils.safe_load(s)
|
sdict = utils.safe_load(s)
|
||||||
sdict["logging"]["level"] = sdict["logging"]["level"].upper()
|
|
||||||
if self._validate(sdict):
|
if self._validate(sdict):
|
||||||
|
sdict["logging"]["level"] = sdict["logging"]["level"].upper()
|
||||||
anyconfig.merge(defaults, sdict, ac_merge=anyconfig.MS_DICTS)
|
anyconfig.merge(defaults, sdict, ac_merge=anyconfig.MS_DICTS)
|
||||||
|
|
||||||
if cli_options and self._validate(cli_options):
|
if cli_options and self._validate(cli_options):
|
||||||
@ -100,7 +100,7 @@ class Settings(object):
|
|||||||
"exclude_files": []
|
"exclude_files": []
|
||||||
},
|
},
|
||||||
"logging": {
|
"logging": {
|
||||||
"level": logging.getLevelName(30),
|
"level": "WARNING",
|
||||||
"json": False
|
"json": False
|
||||||
},
|
},
|
||||||
"ansible": {
|
"ansible": {
|
||||||
|
Loading…
Reference in New Issue
Block a user