summaryrefslogtreecommitdiff
path: root/openstackclient/common/restapi.py
diff options
context:
space:
mode:
authorDean Troyer <dtroyer@gmail.com>2014-06-26 18:09:24 -0500
committerDean Troyer <dtroyer@gmail.com>2014-06-27 09:12:55 -0500
commit11f3654f6e29c8d66a0ef550963056b70bc100d3 (patch)
tree37286f9005a308ac13da5ad3bb026d3fe5e57b46 /openstackclient/common/restapi.py
parenta78d75f290278501b5d8130dc58420952a13e1a1 (diff)
downloadpython-openstackclient-11f3654f6e29c8d66a0ef550963056b70bc100d3.tar.gz
Fix PEP8 E265 errors
Change-Id: Ieb9a9af1da27d3935d1a4d3cfb61b0ccb03d099a
Diffstat (limited to 'openstackclient/common/restapi.py')
-rw-r--r--openstackclient/common/restapi.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/openstackclient/common/restapi.py b/openstackclient/common/restapi.py
index 1bb64fae..f20ad23d 100644
--- a/openstackclient/common/restapi.py
+++ b/openstackclient/common/restapi.py
@@ -251,16 +251,6 @@ class RESTApi(object):
else:
return response.json()
- ###hack this for keystone!!!
- #data = body[response_key]
- # NOTE(ja): keystone returns values as list as {'values': [ ... ]}
- # unlike other services which just return the list...
- #if isinstance(data, dict):
- # try:
- # data = data['values']
- # except KeyError:
- # pass
-
def set(self, url, data=None, response_key=None, **kwargs):
"""Update an object via a PUT request