From f9a6c898b45d51a3262932858f0a17de6c07c0f0 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. --- cloud/digital_ocean/digital_ocean_domain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud/digital_ocean/digital_ocean_domain.py b/cloud/digital_ocean/digital_ocean_domain.py index 905b6dae2d0..3b7a2dce236 100644 --- a/cloud/digital_ocean/digital_ocean_domain.py +++ b/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"):