mirror of
https://github.com/rancher/os.git
synced 2025-08-01 23:17:50 +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"
|
"github.com/rancherio/rancher-compose/project"
|
||||||
)
|
)
|
||||||
|
|
||||||
type configEnvironemnt struct {
|
type configEnvironment struct {
|
||||||
cfg *config.Config
|
cfg *config.Config
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -45,7 +45,7 @@ func lookupKeys(cfg *config.Config, keys ...string) []string {
|
|||||||
return []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)
|
fullKey := fmt.Sprintf("%s/%s", serviceName, key)
|
||||||
return lookupKeys(c.cfg, fullKey, 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
|
network := false
|
||||||
projectEvents := make(chan project.ProjectEvent)
|
projectEvents := make(chan project.ProjectEvent)
|
||||||
p := project.NewProject(name, NewContainerFactory(cfg))
|
p := project.NewProject(name, NewContainerFactory(cfg))
|
||||||
p.EnvironmentLookup = &configEnvironemnt{cfg: cfg}
|
p.EnvironmentLookup = &configEnvironment{cfg: cfg}
|
||||||
p.AddListener(projectEvents)
|
p.AddListener(projectEvents)
|
||||||
enabled := make(map[string]bool)
|
enabled := make(map[string]bool)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user