Skip to content

Commit

Permalink
CLOUDP-235200: [AtlasCLI] atlas cluster create returns invalid Mong…
Browse files Browse the repository at this point in the history
…oDB version error when env MCLI_SERVICE is not defined (#2788)
  • Loading branch information
gssbzn committed Mar 20, 2024
1 parent 29e3a3b commit 603d7ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/command/atlas-clusters-create.txt
Expand Up @@ -91,7 +91,7 @@ Options
- false
- Major MongoDB version of the cluster.

Mutually exclusive with --file.
Mutually exclusive with --file. This value defaults to "7.0".
* - -m, --members
- int
- false
Expand Down
9 changes: 1 addition & 8 deletions internal/store/store.go
Expand Up @@ -321,14 +321,7 @@ func New(opts ...Option) (*Store, error) {
if err != nil {
return nil, err
}

switch store.service {
case config.CloudService, config.CloudGovService:
err = store.setAtlasClient(client)
default:
return nil, fmt.Errorf("%w: %s", errUnsupportedService, store.service)
}
if err != nil {
if err = store.setAtlasClient(client); err != nil {
return nil, err
}

Expand Down

0 comments on commit 603d7ba

Please sign in to comment.