Fix wrong environment variable ARVADOS_API_INSECURE -> ARVADOS_API_HOST_INSECURE...
authorTom Clegg <tom@curoverse.com>
Tue, 18 Oct 2016 14:49:38 +0000 (10:49 -0400)
committerTom Clegg <tom@curoverse.com>
Tue, 18 Oct 2016 14:49:38 +0000 (10:49 -0400)
services/crunch-dispatch-slurm/crunch-dispatch-slurm.go

index f793805a8b55f57b5adc391dce7abf7e2aeb373c..0c1ce49592a6b08223271d440dca41f3a5d8fd46 100644 (file)
@@ -79,9 +79,9 @@ func doMain() error {
                // propagated to crunch-run via SLURM.
                os.Setenv("ARVADOS_API_HOST", theConfig.Client.APIHost)
                os.Setenv("ARVADOS_API_TOKEN", theConfig.Client.AuthToken)
-               os.Setenv("ARVADOS_API_INSECURE", "")
+               os.Setenv("ARVADOS_API_HOST_INSECURE", "")
                if theConfig.Client.Insecure {
-                       os.Setenv("ARVADOS_API_INSECURE", "1")
+                       os.Setenv("ARVADOS_API_HOST_INSECURE", "1")
                }
                os.Setenv("ARVADOS_KEEP_SERVICES", strings.Join(theConfig.Client.KeepServiceURIs, " "))
                os.Setenv("ARVADOS_EXTERNAL_CLIENT", "")