Skip to content

Commit 5a700e0

Browse files
Drop manual env variable check (#3582)
1 parent 3ea15e1 commit 5a700e0

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

internal/cli/deployments/options/deployment_opts.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import (
1919
"errors"
2020
"fmt"
2121
"io"
22-
"os"
2322
"regexp"
2423
"sort"
2524
"strings"
@@ -132,12 +131,8 @@ func (opts *DeploymentOpts) LocalMongodHostname() string {
132131
var LocalDevImage = "docker.io/mongodb/mongodb-atlas-local"
133132

134133
func getLocalDevImage() string {
135-
// First check environment variable
136-
if envImage := os.Getenv("ATLAS_LOCAL_DEPLOYMENT_IMAGE"); envImage != "" {
137-
return envImage
138-
}
139-
140134
// Then check profile settings
135+
// This will also check the MONGODB_ATLAS_LOCAL_DEPLOYMENT_IMAGE environment variable
141136
if profileImage := config.Default().GetLocalDeploymentImage(); profileImage != "" {
142137
return profileImage
143138
}

0 commit comments

Comments
 (0)