updates the driver

Closes #787

Signed-off-by: Tomaz Muraus <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/46177074
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/46177074
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/46177074

Branch: refs/heads/trunk
Commit: 46177074ceebe824d80332289e05a91012cb22e5
Parents: 47db6ce
Author: oltjano <[email protected]>
Authored: Sun May 15 17:50:55 2016 -0700
Committer: Tomaz Muraus <[email protected]>
Committed: Wed May 25 14:37:44 2016 +0200

----------------------------------------------------------------------
 libcloud/dns/drivers/dnspod.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/46177074/libcloud/dns/drivers/dnspod.py
----------------------------------------------------------------------
diff --git a/libcloud/dns/drivers/dnspod.py b/libcloud/dns/drivers/dnspod.py
index 0c0515b..4d8838a 100644
--- a/libcloud/dns/drivers/dnspod.py
+++ b/libcloud/dns/drivers/dnspod.py
@@ -292,8 +292,8 @@ class DNSPodDNSDriver(DNSDriver):
                                                data=data)
         except DNSPodException:
             e = sys.exc_info()[1]
-            if e.message == 'Record impacted, same record' \
-                            'exists or CNAME/URL impacted':
+            if e.message == ('Record impacted, same record exists '
+                             'or CNAME/URL impacted'):
                 raise RecordAlreadyExistsError(record_id='', driver=self,
                                                value=name)
             raise e

Reply via email to