projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dba001d
)
17170: More helpful message if ARVADOS_* env vars are not set.
author
Tom Clegg <tom@curii.com>
Wed, 27 Jan 2021 06:45:20 +0000
(
01:45
-0500)
committer
Tom Clegg <tom@curii.com>
Wed, 27 Jan 2021 06:45:20 +0000
(
01:45
-0500)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>
cmd/arvados-client/container_gateway.go
patch
|
blob
|
history
diff --git
a/cmd/arvados-client/container_gateway.go
b/cmd/arvados-client/container_gateway.go
index 2d6fd5eec2a54addb75490894ae0edd9085d3e72..6dbc241bca3cb7252f8488a8c061bb43a94aa3c1 100644
(file)
--- a/
cmd/arvados-client/container_gateway.go
+++ b/
cmd/arvados-client/container_gateway.go
@@
-128,6
+128,10
@@
Options:
loginUsername = targetUUID[:i]
targetUUID = targetUUID[i+1:]
}
+ if os.Getenv("ARVADOS_API_HOST") == "" || os.Getenv("ARVADOS_API_TOKEN") == "" {
+ fmt.Fprintln(stderr, "fatal: ARVADOS_API_HOST and ARVADOS_API_TOKEN environment variables are not set")
+ return 1
+ }
insecure := os.Getenv("ARVADOS_API_HOST_INSECURE")
rpcconn := rpc.NewConn("",
&url.URL{