fix(update): use msg instead of message in module result

This commit is contained in:
Jan Christian Grünhage 2022-09-07 14:34:18 +02:00
parent 60bed8971d
commit 54a7780996
No known key found for this signature in database
GPG key ID: EEC1170CE56FA2ED

View file

@ -121,7 +121,7 @@ def main():
result = _( result = _(
changed=False, changed=False,
diff={}, diff={},
message='' msg=''
) )
failed = False failed = False
@ -137,7 +137,7 @@ def main():
server_ip: str = primary_master_to_ip_literal(module.params['primary_master']) server_ip: str = primary_master_to_ip_literal(module.params['primary_master'])
if not server_ip: if not server_ip:
failed = True failed = True
result['message'] = f"No reachable IP or IPv4 address found for {module.params['primary_master']}, connection probing done with port 53/tcp." result['msg'] = f"No reachable IP or IPv4 address found for {module.params['primary_master']}, connection probing done with port 53/tcp."
module.fail_json(**result) module.fail_json(**result)
# Get existing RRs first # Get existing RRs first