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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user