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

Unified Diff: appengine/findit/common/appengine_util.py

Issue 2299883005: [Findit] Add findit_for_client to do analysis based on client_id (Closed)
Patch Set: Rebase. Created 4 years, 3 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 | « no previous file | appengine/findit/common/constants.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/findit/common/appengine_util.py
diff --git a/appengine/findit/common/appengine_util.py b/appengine/findit/common/appengine_util.py
index 691731430da71626f9edb15f151b02d80162eb97..24a26e046285767ab4734688d1e92920cfb3846b 100644
--- a/appengine/findit/common/appengine_util.py
+++ b/appengine/findit/common/appengine_util.py
@@ -4,6 +4,7 @@
import os
+from google.appengine.api import app_identity
from google.appengine.api import modules
@@ -17,6 +18,11 @@ def GetCurrentVersion(): # pragma: no cover.
return modules.get_current_version_name()
+def GetDefaultVersionHostname(): # pragma: no cover.
+ """Returns the default version hostname of this service."""
+ return app_identity.get_default_version_hostname()
+
+
def GetTargetNameForModule(module_name, version=None): # pragma: no cover.
"""Returns the target name for the given module and version.
« no previous file with comments | « no previous file | appengine/findit/common/constants.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698