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