|
|
@ -276,10 +276,6 @@ class ExoDnsRecord(ExoDns):
|
|
|
|
def __init__(self, module):
|
|
|
|
def __init__(self, module):
|
|
|
|
super(ExoDnsRecord, self).__init__(module)
|
|
|
|
super(ExoDnsRecord, self).__init__(module)
|
|
|
|
|
|
|
|
|
|
|
|
self.content = self.module.params.get('content')
|
|
|
|
|
|
|
|
if self.content:
|
|
|
|
|
|
|
|
self.content = self.content.lower()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self.domain = self.module.params.get('domain').lower()
|
|
|
|
self.domain = self.module.params.get('domain').lower()
|
|
|
|
self.name = self.module.params.get('name').lower()
|
|
|
|
self.name = self.module.params.get('name').lower()
|
|
|
|
if self.name == self.domain:
|
|
|
|
if self.name == self.domain:
|
|
|
@ -290,6 +286,10 @@ class ExoDnsRecord(ExoDns):
|
|
|
|
if self.multiple and self.record_type != 'A':
|
|
|
|
if self.multiple and self.record_type != 'A':
|
|
|
|
self.module.fail_json(msg="Multiple is only usable with record_type A")
|
|
|
|
self.module.fail_json(msg="Multiple is only usable with record_type A")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self.content = self.module.params.get('content')
|
|
|
|
|
|
|
|
if self.content and self.record_type != 'TXT':
|
|
|
|
|
|
|
|
self.content = self.content.lower()
|
|
|
|
|
|
|
|
|
|
|
|
def _create_record(self, record):
|
|
|
|
def _create_record(self, record):
|
|
|
|
self.result['changed'] = True
|
|
|
|
self.result['changed'] = True
|
|
|
|
data = {
|
|
|
|
data = {
|
|
|
|