1
0
mirror of https://github.com/rancher/os.git synced 2025-09-12 04:01:20 +00:00

Fix environment variables set for system services

This commit is contained in:
Josh Curl
2016-04-12 22:59:37 -07:00
parent dcba30813c
commit e31b955b0a
4 changed files with 57 additions and 5 deletions

View File

@@ -49,6 +49,10 @@ func lookupKeys(cfg *config.CloudConfig, keys ...string) []string {
return []string{}
}
func (c *ConfigEnvironment) SetConfig(cfg *config.CloudConfig) {
c.cfg = cfg
}
func (c *ConfigEnvironment) Lookup(key, serviceName string, serviceConfig *project.ServiceConfig) []string {
fullKey := fmt.Sprintf("%s/%s", serviceName, key)
return lookupKeys(c.cfg, fullKey, key)