You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by an...@apache.org on 2016/01/15 09:42:14 UTC
[2/3] libcloud git commit: auroradns: Use self.connection.driver
instead of self for 'driver' Closes #672
auroradns: Use self.connection.driver instead of self for 'driver'
Closes #672
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/56649ca8
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/56649ca8
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/56649ca8
Branch: refs/heads/trunk
Commit: 56649ca8d81ae3de1723debb17918f60bad2c6a0
Parents: de7862f
Author: Wido den Hollander <wi...@widodh.nl>
Authored: Fri Jan 15 09:25:09 2016 +0100
Committer: anthony-shaw <an...@gmail.com>
Committed: Fri Jan 15 19:39:18 2016 +1100
----------------------------------------------------------------------
libcloud/dns/drivers/auroradns.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/libcloud/blob/56649ca8/libcloud/dns/drivers/auroradns.py
----------------------------------------------------------------------
diff --git a/libcloud/dns/drivers/auroradns.py b/libcloud/dns/drivers/auroradns.py
index 7c5d73c..658f99c 100644
--- a/libcloud/dns/drivers/auroradns.py
+++ b/libcloud/dns/drivers/auroradns.py
@@ -575,13 +575,13 @@ class AuroraDNSDriver(DNSDriver):
return Record(id=record['id'], name=name,
type=record['type'],
data=record['content'], zone=zone,
- driver=self, ttl=record['ttl'],
+ driver=self.connection.driver, ttl=record['ttl'],
extra=extra)
def __res_to_zone(self, zone):
return Zone(id=zone['id'], domain=zone['name'],
type=DEFAULT_ZONE_TYPE,
- ttl=DEFAULT_ZONE_TTL, driver=self,
+ ttl=DEFAULT_ZONE_TTL, driver=self.connection.driver,
extra={'created': zone['created'],
'servers': zone['servers'],
'account_id': zone['account_id'],
@@ -598,7 +598,7 @@ class AuroraDNSDriver(DNSDriver):
interval=healthcheck['interval'],
port=healthcheck['port'],
enabled=healthcheck['enabled'],
- zone=zone, driver=self)
+ zone=zone, driver=self.connection.driver)
def __merge_extra_data(self, rdata, extra):
if extra is not None: