Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(206)

Unified Diff: appengine/components/tools/gae.py

Issue 2987613002: Fix gae.py's detection of current active credentials. (Closed)
Patch Set: typo Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « appengine/components/tool_support/gae_sdk_utils.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/components/tools/gae.py
diff --git a/appengine/components/tools/gae.py b/appengine/components/tools/gae.py
index ada7216a93bd22c10dcef79d22089c27c1d3096b..673adfcd7405d7f188fb456ef3f3d3e21e96a54b 100755
--- a/appengine/components/tools/gae.py
+++ b/appengine/components/tools/gae.py
@@ -72,6 +72,20 @@ def print_version_log(app, to_version):
##
+def CMDappcfg_login(parser, args):
+ """Sets up authentication for appcfg.py usage [DEPRECATED]."""
+ app, _, _ = parser.parse_args(args)
+ print (
+ 'Since appcfg.py doesn\'t support explicit login command, we\'ll run '
+ 'innocent "list_version" instead. It will trigger appcfg\'s login flow. '
+ '\n'
+ 'It\'s fine if "list_version" call itself fails - at this point we have '
+ 'the necessary credentials cached and other subcommands should be able '
+ 'to use them.\n')
+ gae_sdk_utils.appcfg_login(app)
+ return 0
+
+
def CMDactive(parser, args):
"""Prints the active versions on the server.
« no previous file with comments | « appengine/components/tool_support/gae_sdk_utils.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698