Merge pull request #231 from coreos-inc/smallfix

Small API fixes
This commit is contained in:
Jake Moshenko 2015-07-20 13:45:24 -04:00
commit 679044574a
2 changed files with 2 additions and 2 deletions

View file

@ -186,7 +186,7 @@ def process_oauth(func):
normalized = [part.strip() for part in auth.split(' ') if part]
if normalized[0].lower() != 'bearer' or len(normalized) != 2:
logger.debug('Invalid oauth bearer token format.')
return
return func(*args, **kwargs)
token = normalized[1]
_validate_and_apply_oauth_token(token)

View file

@ -24,7 +24,7 @@ class ListRepositoryTags(RepositoryParamResource):
def get(self, args, namespace, repository):
repo = model.repository.get_repository(namespace, repository)
if not repo:
abort(404)
raise NotFound()
def tag_view(tag):
tag_info = {