mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-02 23:31:25 -07:00
Fix invocations of module.fail_json with no msg=
Bonus: add missing % in cs_nic.py
This commit is contained in:
parent
91860b2423
commit
ec9582fd83
15 changed files with 25 additions and 25 deletions
|
@ -103,7 +103,7 @@ class Icinga2FeatureHelper:
|
|||
|
||||
if self.module.params["state"] == "present":
|
||||
if rc != 0:
|
||||
self.module.fail_json("Fail to %s feature %s. icinga2 command returned %s"
|
||||
self.module.fail_json(msg="Fail to %s feature %s. icinga2 command returned %s"
|
||||
% (feature_enable_str, self.module.params["name"], out))
|
||||
|
||||
if re.search("already enabled", out) is None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue