Nsupdate idempotency fix

(cherry picked from commit 637e9942ff)
pull/23368/head
nerzhul 8 years ago committed by Toshio Kuratomi
parent c6e9039b23
commit 1a45463725

@ -223,13 +223,14 @@ class RecordManager(object):
self.dns_rc = self.modify_record()
if self.dns_rc != 0:
result['msg'] = "Failed to update DNS record (rc: %d)" % self.dns_rc
else:
result['changed'] = False
if self.dns_rc != 0:
result['failed'] = True
if self.dns_rc != 0:
result['failed'] = True
else:
result['changed'] = True
else:
result['changed'] = True
result['changed'] = False
return result

Loading…
Cancel
Save