Merge "Fix PEP8 E265 errors"
This commit is contained in:
commit
58583b55ca
@ -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
|
||||
|
||||
|
@ -693,7 +693,7 @@ class MigrateServer(command.Command):
|
||||
if utils.wait_for_status(
|
||||
compute_client.servers.get,
|
||||
server.id,
|
||||
#callback=_show_progress,
|
||||
callback=_show_progress,
|
||||
):
|
||||
sys.stdout.write('Complete\n')
|
||||
else:
|
||||
|
@ -137,10 +137,6 @@ class TestRESTApi(utils.TestCase):
|
||||
user_agent=fake_user_agent,
|
||||
)
|
||||
gopher = api.request('GET', fake_url)
|
||||
#session_mock.return_value.headers.setdefault.assert_called_with(
|
||||
# 'X-Auth-Token',
|
||||
# fake_auth,
|
||||
#)
|
||||
session_mock.return_value.request.assert_called_with(
|
||||
'GET',
|
||||
fake_url,
|
||||
|
@ -114,7 +114,8 @@ IDENTITY_PROVIDER = {
|
||||
'description': idp_description
|
||||
}
|
||||
|
||||
#Assignments
|
||||
# Assignments
|
||||
|
||||
ASSIGNMENT_WITH_PROJECT_ID_AND_USER_ID = {
|
||||
'scope': {'project': {'id': project_id}},
|
||||
'user': {'id': user_id},
|
||||
|
@ -220,7 +220,6 @@ class TestVolumeCreate(TestVolume):
|
||||
None,
|
||||
None,
|
||||
volume_fakes.volume_name,
|
||||
#volume_fakes.volume_description,
|
||||
None,
|
||||
None,
|
||||
identity_fakes.user_id,
|
||||
@ -296,7 +295,6 @@ class TestVolumeCreate(TestVolume):
|
||||
None,
|
||||
None,
|
||||
volume_fakes.volume_name,
|
||||
#volume_fakes.volume_description,
|
||||
None,
|
||||
None,
|
||||
identity_fakes.user_id,
|
||||
|
Loading…
Reference in New Issue
Block a user