mirror of https://github.com/ansible/ansible.git
Allow the msg argument to fail_json() to be a positional argument
fial_json() requires a message be given to it to inform the end user of why the module failed. Prior to this commit, the message had to be a keyword argument: module.fail_json(msg='Failed due to error') Since this is a required parameter, this commit allows the message to be given as a positional argument instead: module.fail_json('Failed due to an error')pull/68135/head
parent
148e83f832
commit
6531ba38f8
@ -0,0 +1,5 @@
|
||||
minor_features:
|
||||
- `AnsibleModule.fail_json()` has always required that a message be passed
|
||||
in which informs the end user why the module failed. In the past this
|
||||
message had to be passed as the `msg` keyword argument but it can now be
|
||||
passed as the first positional argument instead.
|
Loading…
Reference in New Issue