diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-05-01 15:13:44 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-05-01 15:13:51 +0200 |
commit | 72ef4b6374aa75e0659476ed6e0a83140162d343 (patch) | |
tree | b29f81c3bda6afd2a7267cbfc9f10d83cdae13f8 /ascension | |
parent | 5bdbb5f19776aff0a9a673e1f0fd3c7aefe19650 (diff) | |
download | ascension-72ef4b6374aa75e0659476ed6e0a83140162d343.tar.gz ascension-72ef4b6374aa75e0659476ed6e0a83140162d343.zip |
minor fixes
Diffstat (limited to 'ascension')
-rw-r--r-- | ascension/ascension.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ascension/ascension.py b/ascension/ascension.py index 4d521b4..d1492f8 100644 --- a/ascension/ascension.py +++ b/ascension/ascension.py | |||
@@ -269,6 +269,8 @@ class Ascender(): | |||
269 | # Check if there is zone has already been migrated | 269 | # Check if there is zone has already been migrated |
270 | nsrecords = cls.zone.iterate_rdatas(dns.rdatatype.NS) | 270 | nsrecords = cls.zone.iterate_rdatas(dns.rdatatype.NS) |
271 | 271 | ||
272 | # This is broken if your NS is for ns.foo.YOURZONE as you add | ||
273 | # the PKEY to YOURZONE instead of to the foo.YOURZONE subzone. | ||
272 | gnspkey = list(filter(lambda record: str(record[2]).startswith('gns--pkey--'), nsrecords)) | 274 | gnspkey = list(filter(lambda record: str(record[2]).startswith('gns--pkey--'), nsrecords)) |
273 | if gnspkey: | 275 | if gnspkey: |
274 | label = str(gnspkey[0][0]) | 276 | label = str(gnspkey[0][0]) |
@@ -342,8 +344,7 @@ class Ascender(): | |||
342 | logging.critical("thread join timed out, still running") | 344 | logging.critical("thread join timed out, still running") |
343 | 345 | ||
344 | # Add soa record to GNS once completed (updates the previous one) | 346 | # Add soa record to GNS once completed (updates the previous one) |
345 | soa = cls.get_zone_soa(cls.zone) | 347 | cls.add_soa_record_to_gns(cls.soa) |
346 | cls.add_soa_record_to_gns(soa) | ||
347 | logging.info("All records have been added!") | 348 | logging.info("All records have been added!") |
348 | 349 | ||
349 | @staticmethod | 350 | @staticmethod |