- List the name servers of a zone.
This commit is contained in:
parent
53e9caa1d0
commit
9ad15cdae9
1 changed files with 7 additions and 1 deletions
|
@ -372,7 +372,13 @@ def main():
|
||||||
break
|
break
|
||||||
|
|
||||||
if command_in == 'get':
|
if command_in == 'get':
|
||||||
module.exit_json(changed=False, set=record)
|
if type_in == 'NS':
|
||||||
|
ns = record['values']
|
||||||
|
else:
|
||||||
|
# Retrieve name servers associated to the zone.
|
||||||
|
ns = conn.get_zone(zone_in).get_nameservers()
|
||||||
|
|
||||||
|
module.exit_json(changed=False, set=record, nameservers=ns)
|
||||||
|
|
||||||
if command_in == 'delete' and not found_record:
|
if command_in == 'delete' and not found_record:
|
||||||
module.exit_json(changed=False)
|
module.exit_json(changed=False)
|
||||||
|
|
Loading…
Reference in a new issue