Skip to content

Commit a1d885f

Browse files
committed
chore(intake): Adjust wait handler
Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>
1 parent 3efde9c commit a1d885f

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

internal/cmd/beta/intake/create/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ func NewCmd(p *types.CmdParams) *cobra.Command {
113113
// Wait for async operation, if async mode not enabled
114114
if !model.Async {
115115
err := spinner.Run(p.Printer, "Creating STACKIT Intake instance", func() error {
116-
_, err = wait.CreateOrUpdateIntakeWaitHandler(ctx, apiClient.DefaultAPI, model.ProjectId, model.Region, resp.GetId()).WaitWithContext(ctx)
116+
_, err = wait.CreateIntakeWaitHandler(ctx, apiClient.DefaultAPI, model.ProjectId, model.Region, resp.GetId()).WaitWithContext(ctx)
117117
return err
118118
})
119119
if err != nil {

internal/cmd/beta/intake/runner/create/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func NewCmd(p *types.CmdParams) *cobra.Command {
8989
// Wait for async operation, if async mode not enabled
9090
if !model.Async {
9191
err := spinner.Run(p.Printer, "Creating STACKIT Intake Runner", func() error {
92-
_, err = wait.CreateOrUpdateIntakeRunnerWaitHandler(ctx, apiClient.DefaultAPI, model.ProjectId, model.Region, resp.GetId()).WaitWithContext(ctx)
92+
_, err = wait.CreateIntakeRunnerWaitHandler(ctx, apiClient.DefaultAPI, model.ProjectId, model.Region, resp.GetId()).WaitWithContext(ctx)
9393
return err
9494
})
9595
if err != nil {

internal/cmd/beta/intake/runner/update/update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func NewCmd(p *types.CmdParams) *cobra.Command {
8888
// Wait for async operation, if async mode not enabled
8989
if !model.Async {
9090
err := spinner.Run(p.Printer, "Updating STACKIT Intake Runner", func() error {
91-
_, err = wait.CreateOrUpdateIntakeRunnerWaitHandler(ctx, apiClient.DefaultAPI, model.ProjectId, model.Region, model.RunnerId).WaitWithContext(ctx)
91+
_, err = wait.UpdateIntakeRunnerWaitHandler(ctx, apiClient.DefaultAPI, model.ProjectId, model.Region, model.RunnerId).WaitWithContext(ctx)
9292
return err
9393
})
9494
if err != nil {

internal/cmd/beta/intake/update/update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ func NewCmd(p *types.CmdParams) *cobra.Command {
107107
// Wait for async operation, if async mode not enabled
108108
if !model.Async {
109109
err := spinner.Run(p.Printer, "Updating STACKIT Intake Runner instance", func() error {
110-
_, err = wait.CreateOrUpdateIntakeWaitHandler(ctx, apiClient.DefaultAPI, model.ProjectId, model.Region, model.IntakeId).WaitWithContext(ctx)
110+
_, err = wait.UpdateIntakeWaitHandler(ctx, apiClient.DefaultAPI, model.ProjectId, model.Region, model.IntakeId).WaitWithContext(ctx)
111111
return err
112112
})
113113
if err != nil {

internal/cmd/beta/intake/user/create/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ func NewCmd(p *types.CmdParams) *cobra.Command {
9090
// Wait for async operation, if async mode not enabled
9191
if !model.Async {
9292
err := spinner.Run(p.Printer, "Creating STACKIT Intake User", func() error {
93-
_, err = wait.CreateOrUpdateIntakeUserWaitHandler(ctx, apiClient.DefaultAPI, model.ProjectId, model.Region, *model.IntakeId, resp.GetId()).WaitWithContext(ctx)
93+
_, err = wait.CreateIntakeUserWaitHandler(ctx, apiClient.DefaultAPI, model.ProjectId, model.Region, *model.IntakeId, resp.GetId()).WaitWithContext(ctx)
9494
return err
9595
})
9696
if err != nil {

internal/cmd/beta/intake/user/update/update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func NewCmd(p *types.CmdParams) *cobra.Command {
7979
// Wait for async operation, if async mode not enabled
8080
if !model.Async {
8181
err := spinner.Run(p.Printer, "Updating STACKIT Intake User", func() error {
82-
_, err = wait.CreateOrUpdateIntakeUserWaitHandler(ctx, apiClient.DefaultAPI, model.ProjectId, model.Region, model.IntakeId, model.UserId).WaitWithContext(ctx)
82+
_, err = wait.UpdateIntakeUserWaitHandler(ctx, apiClient.DefaultAPI, model.ProjectId, model.Region, model.IntakeId, model.UserId).WaitWithContext(ctx)
8383
return err
8484
})
8585

0 commit comments

Comments
 (0)