Skip to content

Commit 29be621

Browse files
committed
update docker so that initialize can happen multiple times and
the client is set to a default env value
1 parent c268a60 commit 29be621

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docker.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ import (
66

77
var client *dockClient.Client
88

9+
func init() {
10+
Initialize("env")
11+
}
12+
913
func Initialize(host string) error {
10-
if client != nil {
11-
return nil
12-
}
1314
var err error
1415
if host == "env" {
1516
client, err = dockClient.NewEnvClient()

0 commit comments

Comments
 (0)