From 7477fe51418dbb890faba8966282ab83e597e6af 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 --- network/cloudflare_dns.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network/cloudflare_dns.py b/network/cloudflare_dns.py index 8772c2ac659..3e5ba50b522 100644 --- a/network/cloudflare_dns.py +++ b/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'] }