Use correct initializers for RecordDoesNotExistError. use qualifier for record type
Signed-off-by: Anthony Shaw <[email protected]> Closes #640 Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/d4fba98a Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/d4fba98a Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/d4fba98a Branch: refs/heads/trunk Commit: d4fba98a6970b0cb2edd84abf99aea32735cc808 Parents: e053ee6 Author: Anthony Shaw <[email protected]> Authored: Fri Nov 27 17:26:16 2015 +1100 Committer: Anthony Shaw <[email protected]> Committed: Fri Nov 27 17:30:26 2015 +1100 ---------------------------------------------------------------------- libcloud/dns/drivers/godaddy.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/d4fba98a/libcloud/dns/drivers/godaddy.py ---------------------------------------------------------------------- diff --git a/libcloud/dns/drivers/godaddy.py b/libcloud/dns/drivers/godaddy.py index 3d5b13f..011780f 100644 --- a/libcloud/dns/drivers/godaddy.py +++ b/libcloud/dns/drivers/godaddy.py @@ -252,7 +252,9 @@ class GoDaddyDNSDriver(DNSDriver): parts[1], parts[0])).object if len(result) == 0: - raise RecordDoesNotExistError() + raise RecordDoesNotExistError(record_id, + driver=self, + record_id=record_id) return self._to_record(result[0], self.get_zone(zone_id)) @@ -397,7 +399,7 @@ class GoDaddyDNSDriver(DNSDriver): if extra is None: extra = {} new_record = {} - if type is RecordType.SRV: + if type == RecordType.SRV: new_record = { 'type': type, 'name': name,
