mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Fix invocations of module.fail_json with no msg=
Bonus: add missing % in cs_nic.py
This commit is contained in:
committed by
Brian Coca
parent
91860b2423
commit
ec9582fd83
@@ -167,7 +167,7 @@ def check_valid_modification(module, values, modifiable_params):
|
||||
|
||||
# check valid modifiable parameters
|
||||
if parameter not in modifiable_params:
|
||||
module.fail_json("%s is not a modifiable parameter. Valid parameters to modify are: %s." % (parameter, modifiable_params.keys()))
|
||||
module.fail_json(msg="%s is not a modifiable parameter. Valid parameters to modify are: %s." % (parameter, modifiable_params.keys()))
|
||||
|
||||
# check allowed datatype for modified parameters
|
||||
str_to_type = {"integer": int, "string": text_type}
|
||||
|
||||
Reference in New Issue
Block a user