Merge pull request #831 from j-carl/feature-route53-nameserver

List the name servers of a zone. Fixes #801
This commit is contained in:
Brian Coca 2015-06-30 00:11:11 -04:00
commit 8b290c6274

View file

@ -374,7 +374,13 @@ def main():
break
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)