Rename ConfigGetenv to ConfigFromJob
This commit is contained in:
parent
7e691e11b0
commit
c542b2f873
2 changed files with 3 additions and 3 deletions
|
@ -19,9 +19,9 @@ type DaemonConfig struct {
|
|||
InterContainerCommunication bool
|
||||
}
|
||||
|
||||
// ConfigGetenv creates and returns a new DaemonConfig object
|
||||
// ConfigFromJob creates and returns a new DaemonConfig object
|
||||
// by parsing the contents of a job's environment.
|
||||
func ConfigGetenv(job *engine.Job) *DaemonConfig {
|
||||
func ConfigFromJob(job *engine.Job) *DaemonConfig {
|
||||
var config DaemonConfig
|
||||
config.Pidfile = job.Getenv("Pidfile")
|
||||
config.Root = job.Getenv("Root")
|
||||
|
|
|
@ -35,7 +35,7 @@ func init() {
|
|||
}
|
||||
|
||||
func JobServeApi(job *engine.Job) string {
|
||||
srv, err := NewServer(ConfigGetenv(job))
|
||||
srv, err := NewServer(ConfigFromJob(job))
|
||||
if err != nil {
|
||||
return err.Error()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue