Skip to content

Commit 17890ac

Browse files
authored
CLOUDP-275225 Only show containers that can be started when running atlas deployments start (#3283)
1 parent 943ba33 commit 17890ac

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/cli/deployments/start.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func (opts *StartOpts) initStore(ctx context.Context) func() error {
5050
}
5151

5252
func (opts *StartOpts) Run(ctx context.Context) error {
53-
deployment, err := opts.SelectDeployments(ctx, opts.ConfigProjectID())
53+
deployment, err := opts.SelectDeployments(ctx, opts.ConfigProjectID(), options.StoppedState, options.PausedState)
5454
if err != nil {
5555
return err
5656
}

internal/cli/deployments/start_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ func TestStart_RunAtlas(t *testing.T) {
119119
},
120120
}
121121

122-
deploymentsTest.CommonAtlasMocks(projectID)
122+
deploymentsTest.CommonAtlasMocksWithState(projectID, "STOPPED")
123123

124124
mockStore.
125125
EXPECT().

0 commit comments

Comments
 (0)