feat(edge-connect-delete): handle the case when the instance is already deleted - continue and try to delete th eapp
This commit is contained in:
parent
f6cbb68550
commit
e477909e70
1 changed files with 2 additions and 1 deletions
|
|
@ -24,7 +24,8 @@ main() {
|
||||||
echo Executing: "${cli_path}" instance delete "${args_instance_delete[@]}"
|
echo Executing: "${cli_path}" instance delete "${args_instance_delete[@]}"
|
||||||
|
|
||||||
# The CLI uses an interactive prompt, so we need to pipe "yes" to it.
|
# The CLI uses an interactive prompt, so we need to pipe "yes" to it.
|
||||||
"${cli_path}" instance delete "${args_instance_delete[@]}"
|
# we ignore an error by ||true in case the instance does not exist, so that we still delete the app
|
||||||
|
"${cli_path}" instance delete "${args_instance_delete[@]}" || true
|
||||||
|
|
||||||
local -a args_app_delete
|
local -a args_app_delete
|
||||||
args_app_delete=("--name" "${INPUT_NAME}" "--version" "${INPUT_APPVERSION}" "--org" "${INPUT_ORG}" "--region" "${INPUT_REGION}")
|
args_app_delete=("--name" "${INPUT_NAME}" "--version" "${INPUT_APPVERSION}" "--org" "${INPUT_ORG}" "--region" "${INPUT_REGION}")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue