ascension

Migrate DNS zones to the GNU Name System
Log | Files | Refs | README | LICENSE

commit 459db264484305373d14918291ad3c3027d4148e
parent c05fb19bbcaa05b3d83fa78ea3fbf4a1f0a8c8bd
Author: rexxnor <rexxnor+gnunet@brief.li>
Date:   Wed, 30 Jan 2019 14:03:20 +0100

minor cleanup

Diffstat:
Mascension/ascension.py | 9++++-----
1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/ascension/ascension.py b/ascension/ascension.py @@ -210,9 +210,8 @@ class Ascender(): # execute thing to run on item label, listofrdatasets = labelrecords - subzones = label.split('.') - # TODO Add the not-in-bailiwick case + # subzones = label.split('.') # elif len(subzones) > 1: # ttl = cls.soa[1] # cls.create_zone_hierarchy(subzones, ttl) @@ -248,7 +247,7 @@ class Ascender(): if value is None: continue - if type(value) is list: + if isinstance(value, list): for element in value: # build recordline recordline.append("-R") @@ -370,8 +369,8 @@ class Ascender(): if nameserver[0:2] == 'uz5': logging.info("zone has a dnscurve record") # TODO extract public key from NS record (dnscurve) - #encoded_pkey = nameserver[2:].split('.')[0] - #pkey = + # encoded_pkey = nameserver[2:].split('.')[0] + # pkey = if value[-1] == ".": value = value[:-1] else: