From 08a2f01a5f848af00ef13b2901a11cb279e569c9 Mon Sep 17 00:00:00 2001 From: Kamil Madac Date: Sun, 28 Jun 2015 21:50:11 +0200 Subject: [PATCH] Fixed bug, when MX records pointed to ORIGIN(@) caused unintentional change of random A record. --- lib/ansible/modules/cloud/digital_ocean/digital_ocean_domain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/digital_ocean/digital_ocean_domain.py b/lib/ansible/modules/cloud/digital_ocean/digital_ocean_domain.py index 905b6dae2d0..3b7a2dce236 100644 --- a/lib/ansible/modules/cloud/digital_ocean/digital_ocean_domain.py +++ b/lib/ansible/modules/cloud/digital_ocean/digital_ocean_domain.py @@ -195,7 +195,7 @@ def core(module): records = domain.records() at_record = None for record in records: - if record.name == "@": + if record.name == "@" and record.record_type == 'A': at_record = record if not at_record.data == getkeyordie("ip"):