summaryrefslogtreecommitdiff
path: root/troveclient/v1/databases.py
diff options
context:
space:
mode:
authorSushil Kumar <sushil.kumar2@globallogic.com>2014-01-05 17:45:35 +0000
committerSushil Kumar <sushil.kumar2@globallogic.com>2014-01-23 08:43:16 +0000
commita35d35824045f3e05d101cb759f59a691848085b (patch)
treea0e441ff25315a4539c49e45e241c19948b94234 /troveclient/v1/databases.py
parentc6a54f7e1c21a07f7707425b7d3d6ec25e17ee5e (diff)
downloadpython-troveclient-a35d35824045f3e05d101cb759f59a691848085b.tar.gz
Updates common.check_for_exceptions and its calls
Reasons: - exceptions.from_response has 3 arguments but is being called with one argument less, which is url. Changes: - Updated common.check_for_exceptions to support urls as needed by troveclient.openstack.common.apiclient.exceptions.from_response. - Adds url to exceptions.from_response calls in troveclient. Closes-Bug: #1266239 Change-Id: Ie18c90349479f740369f63c48a8d9b463641f84d
Diffstat (limited to 'troveclient/v1/databases.py')
-rw-r--r--troveclient/v1/databases.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/troveclient/v1/databases.py b/troveclient/v1/databases.py
index 8089230..32eaacf 100644
--- a/troveclient/v1/databases.py
+++ b/troveclient/v1/databases.py
@@ -43,13 +43,13 @@ class Databases(base.ManagerWithFind):
body = {"databases": databases}
url = "/instances/%s/databases" % instance_id
resp, body = self.api.client.post(url, body=body)
- common.check_for_exceptions(resp, body)
+ common.check_for_exceptions(resp, body, url)
def delete(self, instance_id, dbname):
"""Delete an existing database in the specified instance"""
url = "/instances/%s/databases/%s" % (instance_id, dbname)
resp, body = self.api.client.delete(url)
- common.check_for_exceptions(resp, body)
+ common.check_for_exceptions(resp, body, url)
def list(self, instance, limit=None, marker=None):
"""