From 85d41db922880556d842a513d969fc661b428c5e Mon Sep 17 00:00:00 2001 From: Michael Gruener Date: Fri, 25 Mar 2016 18:07:50 +0100 Subject: [PATCH] cloudflare_dns: Fix SRV record idempotency --- lib/ansible/modules/extras/network/cloudflare_dns.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/network/cloudflare_dns.py b/lib/ansible/modules/extras/network/cloudflare_dns.py index 8772c2ac65..3e5ba50b52 100644 --- a/lib/ansible/modules/extras/network/cloudflare_dns.py +++ b/lib/ansible/modules/extras/network/cloudflare_dns.py @@ -438,7 +438,7 @@ class CloudflareAPI(object): "port": params['port'], "weight": params['weight'], "priority": params['priority'], - "name": params['record'], + "name": params['record'][:-len('.' + params['zone'])], "proto": params['proto'], "service": params['service'] }