Fix missing msg argument
The following patch adds a missing 'msg=' syntax. An exception is raised in ansible if this block is reached during the execution of the module TypeError: fail_json() takes exactly 1 argument (2 given) With the 'msg=' added, you get a more informative error. For example msg: No settings provided to update_domain().
This commit is contained in:
parent
504fc616d0
commit
821c133ff8
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ def rax_dns(module, comment, email, name, state, ttl):
|
||||||
changed = True
|
changed = True
|
||||||
domain.get()
|
domain.get()
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
module.fail_json('%s' % e.message)
|
module.fail_json(msg='%s' % e.message)
|
||||||
|
|
||||||
elif state == 'absent':
|
elif state == 'absent':
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue