mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fixed bug, when MX records pointed to ORIGIN(@) caused unintentional change of random A record.
This commit is contained in:
parent
b3495e238c
commit
08a2f01a5f
1 changed files with 1 additions and 1 deletions
|
@ -195,7 +195,7 @@ def core(module):
|
||||||
records = domain.records()
|
records = domain.records()
|
||||||
at_record = None
|
at_record = None
|
||||||
for record in records:
|
for record in records:
|
||||||
if record.name == "@":
|
if record.name == "@" and record.record_type == 'A':
|
||||||
at_record = record
|
at_record = record
|
||||||
|
|
||||||
if not at_record.data == getkeyordie("ip"):
|
if not at_record.data == getkeyordie("ip"):
|
||||||
|
|
Loading…
Reference in a new issue