From 85a1fdaea0d83e3529386c1c1a39045ec068c328 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Wed, 26 Mar 2014 16:32:35 -0400 Subject: [PATCH] Add missing var in the index --- endpoints/index.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/endpoints/index.py b/endpoints/index.py index 1b67ffb8b..480c9e636 100644 --- a/endpoints/index.py +++ b/endpoints/index.py @@ -229,6 +229,7 @@ def create_repository(namespace, repository): if get_validated_oauth_token(): mixpanel.track(username, 'push_repo', extra_params) + oauth_token = get_validated_oauth_token() metadata['oauth_token_id'] = oauth_token.id metadata['oauth_token_application_id'] = oauth_token.application.client_id metadata['oauth_token_application'] = oauth_token.application.name @@ -353,6 +354,7 @@ def get_repository_images(namespace, repository): } if get_validated_oauth_token(): + oauth_token = get_validated_oauth_token() metadata['oauth_token_id'] = oauth_token.id metadata['oauth_token_application_id'] = oauth_token.application.client_id metadata['oauth_token_application'] = oauth_token.application.name