- List the name servers of a zone.

This commit is contained in:
Jens Carl 2015-02-20 17:22:03 +00:00
parent 7e71121da5
commit 80da041eb6

View file

@ -248,7 +248,13 @@ def main():
module.exit_json(changed=False)
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:
module.exit_json(changed=False)