Improve __repr__ for Record, include zone domain instead of zone id.
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/0e3e0376 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/0e3e0376 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/0e3e0376 Branch: refs/heads/cloudflare_dns_driver Commit: 0e3e0376083e54df9678bc36e155b2c7b133b286 Parents: 00372d0 Author: Tomaz Muraus <[email protected]> Authored: Sun Nov 22 16:46:14 2015 +0100 Committer: Tomaz Muraus <[email protected]> Committed: Sun Nov 22 16:46:14 2015 +0100 ---------------------------------------------------------------------- libcloud/dns/base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/0e3e0376/libcloud/dns/base.py ---------------------------------------------------------------------- diff --git a/libcloud/dns/base.py b/libcloud/dns/base.py index a3a5b1c..4d74c15 100644 --- a/libcloud/dns/base.py +++ b/libcloud/dns/base.py @@ -138,9 +138,10 @@ class Record(object): return record_id def __repr__(self): + zone = self.zone.domain or self.zone.id return ('<Record: zone=%s, name=%s, type=%s, data=%s, provider=%s ' '...>' % - (self.zone.id, self.name, self.type, self.data, + (zone, self.name, self.type, self.data, self.driver.name))
