Merge pull request #2467 from cinek810/fix_ident

It may be string with int comparison, if ansible user specifies ident…
reviewable/pr18780/r1
Brian Coca 10 years ago
commit 1258f82648

@ -388,8 +388,10 @@ def main():
# tripping of things like * and @.
decoded_name = rset.name.replace(r'\052', '*')
decoded_name = decoded_name.replace(r'\100', '@')
#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 rset.identifier == identifier_in:
if rset.type == type_in and decoded_name.lower() == record_in.lower() and rset.identifier == str(identifier_in):
found_record = True
record['zone'] = zone_in
record['type'] = rset.type

Loading…
Cancel
Save