added env var token

This commit is contained in:
Ivan Pedrazas
2016-12-14 17:15:53 +00:00
parent b69e5143b8
commit 58cb9cdbd9
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -101,7 +101,9 @@ func run(c *cli.Context) error {
if plugin.Config.Debug {
debug(&plugin)
}
resolveSecrets(&plugin)
if plugin.Config.Debug {
debug(&plugin)
}
+1
View File
@@ -108,6 +108,7 @@ func resolveSecrets(p *Plugin) {
envval := os.Getenv(secret)
p.Config.Values = resolveEnvVar(p.Config.Values, secret, envval)
p.Config.APIServer = resolveEnvVar(p.Config.APIServer, secret, envval)
p.Config.Token = resolveEnvVar(p.Config.Token, secret, envval)
}
}
}