Fix invocations of module.fail_json with no msg=

Bonus: add missing % in cs_nic.py
This commit is contained in:
Kamil Cholewiński 2017-03-07 13:51:38 +01:00 committed by Brian Coca
commit ec9582fd83
15 changed files with 25 additions and 25 deletions

View file

@ -238,7 +238,7 @@ def codex_list(module):
rc, stdout, stderr = module.run_command(cmd_scribe)
if rc != 0:
module.fail_json("unable to list grimoire collection, fix your Codex")
module.fail_json(msg="unable to list grimoire collection, fix your Codex")
rex = re.compile("^\s*\[\d+\] : (?P<grim>[\w\-\+\.]+) : [\w\-\+\./]+(?: : (?P<ver>[\w\-\+\.]+))?\s*$")