rebase for #2477, ready_for_review (#2581)

This commit is contained in:
Marcin 2016-04-16 21:50:53 +02:00 committed by René Moser
parent 09f14731f2
commit 5312627091

View file

@ -482,7 +482,10 @@ def main():
#Need to save this changes in rset, because of comparing rset.to_xml() == wanted_rset.to_xml() in next block
rset.name = decoded_name
if rset.type == type_in and decoded_name.lower() == record_in.lower() and str(rset.identifier) == str(identifier_in):
if identifier_in is not None:
identifier_in = str(identifier_in)
if rset.type == type_in and decoded_name.lower() == record_in.lower() and rset.identifier == identifier_in:
found_record = True
record['zone'] = zone_in
record['type'] = rset.type