Skip to content

Commit

Permalink
CLOUDP-275225 Only show containers that can be started when running `…
Browse files Browse the repository at this point in the history
…atlas deployments start` (#3283)
  • Loading branch information
fmenezes authored Sep 25, 2024
1 parent 943ba33 commit 17890ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/cli/deployments/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (opts *StartOpts) initStore(ctx context.Context) func() error {
}

func (opts *StartOpts) Run(ctx context.Context) error {
deployment, err := opts.SelectDeployments(ctx, opts.ConfigProjectID())
deployment, err := opts.SelectDeployments(ctx, opts.ConfigProjectID(), options.StoppedState, options.PausedState)
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion internal/cli/deployments/start_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func TestStart_RunAtlas(t *testing.T) {
},
}

deploymentsTest.CommonAtlasMocks(projectID)
deploymentsTest.CommonAtlasMocksWithState(projectID, "STOPPED")

mockStore.
EXPECT().
Expand Down

0 comments on commit 17890ac

Please sign in to comment.