Skip to content

Commit

Permalink
Merge branch 'main' into DXCDT-586-select-multiple-ids-for-delete-res…
Browse files Browse the repository at this point in the history
…ource
  • Loading branch information
willvedd authored Dec 5, 2023
2 parents ec53715 + 3ea19cd commit 3c0bddc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/cli/apps.go
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,9 @@ func deleteAppCmd(cli *cli) *cobra.Command {
}

if !cli.force && canPrompt(cmd) {
if tenant, _ := cli.Config.GetTenant(cli.tenant); tenant.ClientID == inputs.ID {

Check failure on line 331 in internal/cli/apps.go

View workflow job for this annotation

GitHub Actions / Vulnerabilities Scan

undefined: inputs

Check failure on line 331 in internal/cli/apps.go

View workflow job for this annotation

GitHub Actions / Checks

undefined: inputs

Check failure on line 331 in internal/cli/apps.go

View workflow job for this annotation

GitHub Actions / Unit Tests

undefined: inputs

Check failure on line 331 in internal/cli/apps.go

View workflow job for this annotation

GitHub Actions / Build

undefined: inputs

Check failure on line 331 in internal/cli/apps.go

View workflow job for this annotation

GitHub Actions / Build

undefined: inputs

Check failure on line 331 in internal/cli/apps.go

View workflow job for this annotation

GitHub Actions / Build

undefined: inputs
cli.renderer.Warnf("Warning: You're about to delete the client used to authenticate the CLI. If deleted, the CLI will cease to operate once the access token has expired.", inputs.ID)

Check failure on line 332 in internal/cli/apps.go

View workflow job for this annotation

GitHub Actions / Vulnerabilities Scan

undefined: inputs

Check failure on line 332 in internal/cli/apps.go

View workflow job for this annotation

GitHub Actions / Checks

undefined: inputs

Check failure on line 332 in internal/cli/apps.go

View workflow job for this annotation

GitHub Actions / Unit Tests

undefined: inputs

Check failure on line 332 in internal/cli/apps.go

View workflow job for this annotation

GitHub Actions / Build

undefined: inputs

Check failure on line 332 in internal/cli/apps.go

View workflow job for this annotation

GitHub Actions / Build

undefined: inputs

Check failure on line 332 in internal/cli/apps.go

View workflow job for this annotation

GitHub Actions / Build

undefined: inputs
}
if confirmed := prompt.Confirm("Are you sure you want to proceed?"); !confirmed {
return nil
}
Expand Down

0 comments on commit 3c0bddc

Please sign in to comment.