diff --git a/endpoints/api/repotoken.py b/endpoints/api/repotoken.py index 1d9f6bf3b..b430d2b4e 100644 --- a/endpoints/api/repotoken.py +++ b/endpoints/api/repotoken.py @@ -60,7 +60,7 @@ class RepositoryTokenList(RepositoryParamResource): log_action('add_repo_accesstoken', namespace, {'repo': repository, 'token': token_params['friendlyName']}, - repo = model.get_repository(namespace, repository)) + repo=model.get_repository(namespace, repository)) return token_view(token), 201 @@ -116,7 +116,7 @@ class RepositoryToken(RepositoryParamResource): log_action('change_repo_permission', namespace, {'repo': repository, 'token': token.friendly_name, 'code': code, 'role': new_permission['role']}, - repo = model.get_repository(namespace, repository)) + repo=model.get_repository(namespace, repository)) return token_view(token) @@ -129,6 +129,6 @@ class RepositoryToken(RepositoryParamResource): log_action('delete_repo_accesstoken', namespace, {'repo': repository, 'token': token.friendly_name, 'code': code}, - repo = model.get_repository(namespace, repository)) + repo=model.get_repository(namespace, repository)) return 'Deleted', 204