Skip to content

Commit

Permalink
Update destroy-workers.sh
Browse files Browse the repository at this point in the history
OCTOPUS-679: Fixing typo for NAME_PREFIX
  • Loading branch information
Chandan-Abhyankar authored and prb112 committed Apr 5, 2024
1 parent f2107a8 commit f69721d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ansible/post/files/destroy-workers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ PROXY_SERVER="${1}"
# Var: self.triggers.name_prefix
NAME_PREFIX="${2}"

# Get COUNT for all power workers with name having MACHINE_PREFIX
COUNT=$(oc get nodes -l kubernetes.io/arch=ppc64le | grep "${MACHINE_PREFIX}" | grep -c Ready)
echo "Available COUNT for Power worker/s with Prefix '${MACHINE_PREFIX}' is $COUNT"
# Get COUNT for all power workers with name having NAME_PREFIX
COUNT=$(oc get nodes -l kubernetes.io/arch=ppc64le | grep "${NAME_PREFIX}" | grep -c Ready)
echo "Available COUNT for Power worker/s with Prefix '${NAME_PREFIX}' is $COUNT"

IDX=0
while [ "$IDX" -lt "$COUNT" ]
Expand Down

0 comments on commit f69721d

Please sign in to comment.