Fix pointer error
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user