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

Unified Diff: appengine/components/components/config/common.py

Issue 1926443003: swarming: read configs from luci-config (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-py@master
Patch Set: changed logging levels Created 4 years, 8 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/components/config/api.py ('k') | appengine/components/components/config/remote.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/components/components/config/common.py
diff --git a/appengine/components/components/config/common.py b/appengine/components/components/config/common.py
index 78115999a19fd23beea7fa2100367423fe7a8033..0acab72a622f7573914f7242e2e8d554dfcb3a2f 100644
--- a/appengine/components/components/config/common.py
+++ b/appengine/components/components/config/common.py
@@ -109,3 +109,9 @@ def _convert_config(content, dest_type):
@utils.cache
def self_config_set():
return 'services/%s' % app_identity.get_application_id()
+
+
+def config_service_hostname():
+ """Returns hostname of the config service, or None."""
+ settings = ConfigSettings.cached()
+ return settings and settings.service_hostname or None
« no previous file with comments | « appengine/components/components/config/api.py ('k') | appengine/components/components/config/remote.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698