File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ GO_LINK_FLAGS_INJECT_VERSION := -s -w \
25
25
-X github.com/v3io/version-go.os=$(GOOS ) \
26
26
-X github.com/v3io/version-go.arch=$(GOARCH )
27
27
28
- V3CTL_BUILD_COMMAND ?= CGO_ENABLED=0 go build -a -installsuffix cgo -ldflags="${GO_LINK_FLAGS_INJECT_VERSION}" -o ${V3CTL_BIN_PATH}/v3ctl-$(V3CTL_TAG ) -$(GOOS ) -$(GOARCH ) $(V3CTL_SRC_PATH ) /cmd/v3ctl/main.go
28
+ V3CTL_BUILD_COMMAND ?= GOOS=${GOOS} GOARCH=${GOARCH} CGO_ENABLED=0 go build -a -installsuffix cgo -ldflags="${GO_LINK_FLAGS_INJECT_VERSION}" -o ${V3CTL_BIN_PATH}/v3ctl-$(V3CTL_TAG ) -$(GOOS ) -$(GOARCH ) $(V3CTL_SRC_PATH ) /cmd/v3ctl/main.go
29
29
30
30
.PHONY : lint
31
31
lint :
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ package container
22
22
23
23
import (
24
24
"strconv"
25
+ "time"
25
26
26
27
"github.com/v3io/v3ctl/pkg/v3ctl"
27
28
@@ -57,8 +58,10 @@ func newGetContainerCommandeer(getCommandeer *v3ctl.GetCommandeer) (*getContaine
57
58
)
58
59
getContainersInput .AccessKey = getCommandeer .RootCommandeer .AccessKey
59
60
getContainersInput .ContainerName = getCommandeer .RootCommandeer .ContainerName
60
-
61
- response , err := getCommandeer .RootCommandeer .DataPlaneContext .GetContainersSync (& getContainersInput )
61
+ getContainersInput .URL = getCommandeer .RootCommandeer .WebapiURL
62
+ getContainersInput .Timeout = time .Duration (60 ) * time .Second
63
+ getContainersInput .IncludeResponseInError = true
64
+ response , err := getCommandeer .RootCommandeer .Container .GetContainersSync (& getContainersInput )
62
65
if err != nil {
63
66
return errors .Wrap (err , "Failed to get containers" )
64
67
}
You can’t perform that action at this time.
0 commit comments