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

Unified Diff: logdog/client/butler/bootstrap/env.go

Issue 2456673003: Butler: export Coordinator host in environment. (Closed)
Patch Set: Relieve suspense. Created 4 years, 2 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 | logdog/client/butlerlib/bootstrap/bootstrap.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: logdog/client/butler/bootstrap/env.go
diff --git a/logdog/client/butler/bootstrap/env.go b/logdog/client/butler/bootstrap/env.go
index c5e837da574fccc864b765dd3883a8547bad3c0a..b472014c67561f3f4f94ab9dc935b4997af3c751 100644
--- a/logdog/client/butler/bootstrap/env.go
+++ b/logdog/client/butler/bootstrap/env.go
@@ -14,6 +14,10 @@ import (
// Environment is the set of configuration parameters for the bootstrap.
type Environment struct {
+ // CoordinatorHost is the coordinator host name, or empty string if we are
+ // not outputting to a Coordinator.
+ CoordinatorHost string
+
// Project is the project name. If not empty, this will be exported to
// subprocesses.
Project config.ProjectName
@@ -34,6 +38,7 @@ func (e *Environment) Augment(base environ.Env) {
}
}
+ exportIf(bootstrap.EnvCoordinatorHost, e.CoordinatorHost)
exportIf(bootstrap.EnvStreamPrefix, string(e.Prefix))
exportIf(bootstrap.EnvStreamProject, string(e.Project))
exportIf(bootstrap.EnvStreamServerPath, e.StreamServerURI)
« no previous file with comments | « no previous file | logdog/client/butlerlib/bootstrap/bootstrap.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698