summaryrefslogtreecommitdiff
path: root/saharaclient/api/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'saharaclient/api/base.py')
-rw-r--r--saharaclient/api/base.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/saharaclient/api/base.py b/saharaclient/api/base.py
index 9dccf13..d743b60 100644
--- a/saharaclient/api/base.py
+++ b/saharaclient/api/base.py
@@ -213,9 +213,12 @@ class ResourceManager(object):
else:
resp = self.api.delete(url)
- if resp.status_code != 204:
+ if resp.status_code not in [200, 204]:
self._raise_api_exception(resp)
+ if resp.status_code == 200:
+ return get_json(resp)
+
def _plurify_resource_name(self):
return self.resource_class.resource_name + 's'