mirror of
https://github.com/rancher/os.git
synced 2025-07-31 22:47:16 +00:00
Typo in type name
This commit is contained in:
parent
fd0ec5bc19
commit
5728683e1d
@ -10,7 +10,7 @@ import (
|
||||
"github.com/rancherio/rancher-compose/project"
|
||||
)
|
||||
|
||||
type configEnvironemnt struct {
|
||||
type configEnvironment struct {
|
||||
cfg *config.Config
|
||||
}
|
||||
|
||||
@ -45,7 +45,7 @@ func lookupKeys(cfg *config.Config, keys ...string) []string {
|
||||
return []string{}
|
||||
}
|
||||
|
||||
func (c *configEnvironemnt) Lookup(key, serviceName string, serviceConfig *project.ServiceConfig) []string {
|
||||
func (c *configEnvironment) Lookup(key, serviceName string, serviceConfig *project.ServiceConfig) []string {
|
||||
fullKey := fmt.Sprintf("%s/%s", serviceName, key)
|
||||
return lookupKeys(c.cfg, fullKey, key)
|
||||
}
|
||||
@ -54,7 +54,7 @@ func RunServices(name string, cfg *config.Config, configs map[string]*project.Se
|
||||
network := false
|
||||
projectEvents := make(chan project.ProjectEvent)
|
||||
p := project.NewProject(name, NewContainerFactory(cfg))
|
||||
p.EnvironmentLookup = &configEnvironemnt{cfg: cfg}
|
||||
p.EnvironmentLookup = &configEnvironment{cfg: cfg}
|
||||
p.AddListener(projectEvents)
|
||||
enabled := make(map[string]bool)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user