Skip to content

Commit

Permalink
chore: fix force option usage when deleting mcirs
Browse files Browse the repository at this point in the history
  • Loading branch information
sykim-etri committed Dec 28, 2022
1 parent 92893e0 commit 94deaf2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/test/mcir-delete.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ NM_TUMBLEBUG_NS="${c_URL_TUMBLEBUG}/ns/${v_NAMESPACE}"
delete() {

# image
if [[ "${v_QUERY}" == *"image"* ]]; then echo "@_IMAGE_@"; curl -sX DELETE ${NM_TUMBLEBUG_NS}/resources/image?option=force -H "${c_AUTH}" -H "${c_CT}" -o /dev/null -w "IMAGE.delete():%{http_code}\n"; fi
if [[ "${v_QUERY}" == *"image"* ]]; then echo "@_IMAGE_@"; curl -sX DELETE ${NM_TUMBLEBUG_NS}/resources/image?force=true -H "${c_AUTH}" -H "${c_CT}" -o /dev/null -w "IMAGE.delete():%{http_code}\n"; fi
# spec
if [[ "${v_QUERY}" == *"spec"* ]]; then echo "@_SPEC_@"; curl -sX DELETE ${NM_TUMBLEBUG_NS}/resources/spec?option=force -H "${c_AUTH}" -H "${c_CT}" -o /dev/null -w "SPEC.delete():%{http_code}\n"; fi
if [[ "${v_QUERY}" == *"spec"* ]]; then echo "@_SPEC_@"; curl -sX DELETE ${NM_TUMBLEBUG_NS}/resources/spec?force=true -H "${c_AUTH}" -H "${c_CT}" -o /dev/null -w "SPEC.delete():%{http_code}\n"; fi
# sshKey
if [[ "${v_QUERY}" == *"ssh"* ]]; then echo "@_SSHKEY_@"; curl -sX DELETE ${NM_TUMBLEBUG_NS}/resources/sshKey?option=force -H "${c_AUTH}" -H "${c_CT}" -o /dev/null -w "SSHKEY.delete():%{http_code}\n"; fi
if [[ "${v_QUERY}" == *"ssh"* ]]; then echo "@_SSHKEY_@"; curl -sX DELETE ${NM_TUMBLEBUG_NS}/resources/sshKey?force=true -H "${c_AUTH}" -H "${c_CT}" -o /dev/null -w "SSHKEY.delete():%{http_code}\n"; fi
# securityGroup
if [[ "${v_QUERY}" == *"sg"* ]]; then echo "@_SECURITYGROUP_@"; curl -sX DELETE ${NM_TUMBLEBUG_NS}/resources/securityGroup?option=force -H "${c_AUTH}" -H "${c_CT}" -o /dev/null -w "SECURITYGROUP.delete():%{http_code}\n"; fi
if [[ "${v_QUERY}" == *"sg"* ]]; then echo "@_SECURITYGROUP_@"; curl -sX DELETE ${NM_TUMBLEBUG_NS}/resources/securityGroup?force=true -H "${c_AUTH}" -H "${c_CT}" -o /dev/null -w "SECURITYGROUP.delete():%{http_code}\n"; fi
# vpc
if [[ "${v_QUERY}" == *"vpc"* ]]; then echo "@_VPC_@"; curl -sX DELETE ${NM_TUMBLEBUG_NS}/resources/vNet?option=force -H "${c_AUTH}" -H "${c_CT}" -o /dev/null -w "VNET.delete():%{http_code}\n"; fi
if [[ "${v_QUERY}" == *"vpc"* ]]; then echo "@_VPC_@"; curl -sX DELETE ${NM_TUMBLEBUG_NS}/resources/vNet?force=true -H "${c_AUTH}" -H "${c_CT}" -o /dev/null -w "VNET.delete():%{http_code}\n"; fi


}
Expand Down

0 comments on commit 94deaf2

Please sign in to comment.