Skip to content

Commit c069e17

Browse files
committed
fix
1 parent 0f03d3d commit c069e17

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/internal/helper.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,11 @@ func RandEntityWithRevision(entity string) (string, error) {
569569

570570
func MongoDBMajorVersion() (string, error) {
571571
atlasClient := mongodbatlas.NewClient(nil)
572-
atlasURL := os.Getenv("MONGODB_ATLAS_OPS_MANAGER_URL")
572+
profile, err := ProfileData()
573+
if err != nil {
574+
return "", err
575+
}
576+
atlasURL := profile["ops_manager_url"]
573577
baseURL, err := url.Parse(atlasURL)
574578
if err != nil {
575579
return "", err

0 commit comments

Comments
 (0)