From 80da041eb61c8397b21f0e06d26c7b2c58745417 Mon Sep 17 00:00:00 2001 From: Jens Carl Date: Fri, 20 Feb 2015 17:22:03 +0000 Subject: [PATCH] - List the name servers of a zone. --- cloud/amazon/route53.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cloud/amazon/route53.py b/cloud/amazon/route53.py index 7fbe8552f41..9454a7ba81b 100644 --- a/cloud/amazon/route53.py +++ b/cloud/amazon/route53.py @@ -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)