Skip to content

Commit 8ffea92

Browse files
fix minor issues
Signed-off-by: Rohit Yadav <[email protected]>
1 parent c1b54b6 commit 8ffea92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hack/cleanup-ag.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ setup_acs_credentials() {
7070

7171
main() {
7272
for ag in $(get_affinity_groups); do
73-
echo "Checking CloudStack Affinity Group: $ag"
73+
echo "[info] Checking CloudStack Affinity Group: $ag"
7474
cluster=$(get_cluster $ag)
7575
for credential in $(get_cluster_credentials $cluster); do
7676
setup_acs_credentials $credential
@@ -79,7 +79,7 @@ main() {
7979
if [[ "$CS_AG_VMS" == "null" ]]; then
8080
echo "[info] Found Affinity Group ($CS_AG_ID) with no instances assigned:" $ag
8181
if [[ "$DRY_RUN" == "false" ]]; then
82-
_kubectl delete cloudstackaffinitygroup $ag
82+
kubectl -n $NAMESPACE delete cloudstackaffinitygroup $ag
8383
echo "[info] Affinity Group ($CS_AG_ID) $ag has been removed"
8484
else
8585
echo "[dryrun] Affinity Group ($CS_AG_ID) $ag has been removed"

0 commit comments

Comments
 (0)