ascension

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

commit b197dfaaaeb06441c5b100834103e25d4732d746
parent 7e1e8df9145a8524bba10030683e9844dd71b1bc
Author: rexxnor <rexxnor+gnunet@brief.li>
Date:   Thu,  9 May 2019 22:25:42 +0200

fixed a double implemented issue

Diffstat:
Mascension/ascension.py | 10+++++++---
1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/ascension/ascension.py b/ascension/ascension.py @@ -292,8 +292,9 @@ class Ascender(): values = nsrecord[1] ttl = values.ttl - gnspkeys = list(filter(lambda record: str(record).startswith('gns--pkey--') - and illegalchars not in str(record)[11:], values)) + gnspkeys = list(filter(lambda record: + str(record).startswith('gns--pkey--'), + values)) num_gnspkeys = len(gnspkeys) if not num_gnspkeys: @@ -308,7 +309,10 @@ class Ascender(): # FIXME: drop all NS records under this name later! # => new map, if entry present during NS processing, skip! if not any(illegal in gnspkey for illegal in illegalchars): - self.add_pkey_record_to_zone(gnspkey[11:], self.domain, name, ttl) + self.add_pkey_record_to_zone(gnspkey[11:], + self.domain, + name, + ttl) # Unify all records under same label into a record set customrdataset = dict()