Skip to content

Commit

Permalink
fix flake8 formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
rmb938 committed May 8, 2018
1 parent aaf8897 commit 11c36a2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions deli/counter/http/mounts/root/routes/v1/service_accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ def helper_update(self, project: Optional[Project]):

if service_account.state != ResourceState.Created:
raise cherrypy.HTTPError(400,
'Service Account member is not in the following state: ' + ResourceState.Created.value)
'Service Account member is not in the following state: '
+ ResourceState.Created.value)

roles = []
for role_id in request.roles:
Expand Down Expand Up @@ -116,7 +117,8 @@ def helper_create_key(self, project: Optional[Project]):

if service_account.state != ResourceState.Created:
raise cherrypy.HTTPError(400,
'Service Account member is not in the following state: ' + ResourceState.Created.value)
'Service Account member is not in the following state: '
+ ResourceState.Created.value)

service_account.keys = service_account.keys + [request.name]
service_account.save()
Expand All @@ -139,7 +141,8 @@ def helper_delete_key(self, name, project: Optional[Project]):

if service_account.state != ResourceState.Created:
raise cherrypy.HTTPError(400,
'Service Account member is not in the following state: ' + ResourceState.Created.value)
'Service Account member is not in the following state: '
+ ResourceState.Created.value)

if project is None and service_account.name == "admin":
raise cherrypy.HTTPError(409, 'Cannot delete keys for the admin service account.')
Expand Down

0 comments on commit 11c36a2

Please sign in to comment.