Fix pointer error
This commit is contained in:
parent
3b4555344c
commit
ec2407481b
|
@ -173,7 +173,7 @@ func FromConfiguration(data []byte, cfg DockerConfiguration) (*Server, error) {
|
|||
// this logic in. When we're ready to support other environment we'll need to make
|
||||
// some modifications here obviously.
|
||||
var env Environment
|
||||
if t, err := NewDockerEnvironment(cfg); err != nil {
|
||||
if t, err := NewDockerEnvironment(cfg); err == nil {
|
||||
t.Server = s
|
||||
env = t
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue
Block a user