Skip to content

Commit 20affb6

Browse files
authored
Fix default image registry environment variable (#1893)
1 parent f4c0951 commit 20affb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/consts/consts.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ var (
5555
)
5656

5757
func defaultRegistry() string {
58-
if registryOverride, ok := os.LookupEnv("CORTEX_DEV_DEFAULT_PREDICTOR_IMAGE_REGISTRY"); ok {
58+
if registryOverride := os.Getenv("CORTEX_DEV_DEFAULT_PREDICTOR_IMAGE_REGISTRY"); registryOverride != "" {
5959
return registryOverride
6060
}
6161
return "quay.io/cortexlabs"

0 commit comments

Comments
 (0)