From 3a2ccdcac09497540ce8d681a3ae33c96fd3f389 Mon Sep 17 00:00:00 2001 From: Ross McFarland Date: Wed, 28 Jun 2017 03:09:41 -0700 Subject: [PATCH] Manually join self.values to avoid double escapes, e.g. \\; --- octodns/record.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/octodns/record.py b/octodns/record.py index 23bfd45..6ee9dff 100644 --- a/octodns/record.py +++ b/octodns/record.py @@ -254,9 +254,10 @@ class _ValuesMixin(object): return ret def __repr__(self): + values = "['{}']".format("', '".join([str(v) for v in self.values])) return '<{} {} {}, {}, {}>'.format(self.__class__.__name__, self._type, self.ttl, - self.fqdn, self.values) + self.fqdn, values) class _GeoMixin(_ValuesMixin):