Skip to content

Commit

Permalink
fix issue of cluster deployment
Browse files Browse the repository at this point in the history
rh-pre-commit.version: 2.1.0
rh-pre-commit.check-secrets: ENABLED
  • Loading branch information
xinredhat authored and Roming22 committed Mar 11, 2024
1 parent d8bd79b commit bcdbb2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/images/ci-runner/hack/bin/deploy-cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ check_clusteroperators() {

get_hcp_full_version() {
rosa_output=$(rosa list version --channel-group stable --region "$REGION" --hosted-cp -o json)
raw_id=$(echo "$rosa_output" | jq -r '.[0].raw_id' | grep "$OCP_VERSION")
raw_id=$(echo "$rosa_output" | jq -r "[.[].raw_id | select(startswith(\"$OCP_VERSION\"))] | max")
HCP_FULL_VERSION="$raw_id"
if [ -z "$HCP_FULL_VERSION" ]; then
echo "Failed to get the HCP full version of $OCP_VERSION" >&2
Expand Down

0 comments on commit bcdbb2b

Please sign in to comment.