diff --git a/.github/actions/constellation_create/action.yml b/.github/actions/constellation_create/action.yml index beb873b9a..db6b97de9 100644 --- a/.github/actions/constellation_create/action.yml +++ b/.github/actions/constellation_create/action.yml @@ -184,7 +184,12 @@ runs: echo "Creating cluster using config:" cat constellation-conf.yaml sudo sh -c 'echo "127.0.0.1 license.confidential.cloud" >> /etc/hosts' || true - constellation create -c ${{ inputs.controlNodesCount }} -w ${{ inputs.workerNodesCount }} -y --force --debug --tf-log=DEBUG + + output=$(constellation --help) + if [[ $output == *"tf-log"* ]]; then + TFFLAG="--tf-log=DEBUG" + fi + constellation create -c ${{ inputs.controlNodesCount }} -w ${{ inputs.workerNodesCount }} -y --force --debug ${TFFLAG:-} - name: Cdbg deploy if: inputs.isDebugImage == 'true' diff --git a/.github/actions/constellation_destroy/action.yml b/.github/actions/constellation_destroy/action.yml index 8531e8a53..758fe32a0 100644 --- a/.github/actions/constellation_destroy/action.yml +++ b/.github/actions/constellation_destroy/action.yml @@ -40,4 +40,9 @@ runs: - name: Constellation terminate shell: bash - run: constellation terminate --yes --tf-log=DEBUG + run: | + output=$(constellation --help) + if [[ $output == *"tf-log"* ]]; then + TFFLAG="--tf-log=DEBUG" + fi + constellation terminate --yes ${TFFLAG:-} diff --git a/.github/actions/constellation_iam_create/action.yml b/.github/actions/constellation_iam_create/action.yml index 32fdc0e5e..94052f955 100644 --- a/.github/actions/constellation_iam_create/action.yml +++ b/.github/actions/constellation_iam_create/action.yml @@ -51,11 +51,15 @@ runs: shell: bash if: inputs.cloudProvider == 'azure' run: | + output=$(constellation --help) + if [[ $output == *"tf-log"* ]]; then + TFFLAG="--tf-log=DEBUG" + fi constellation iam create azure \ --region=${{ inputs.azureRegion }} \ --resourceGroup="${{ inputs.namePrefix }}-rg" \ --servicePrincipal="${{ inputs.namePrefix }}-sp" \ - --generate-config --yes --tf-log=DEBUG + --generate-config --yes ${TFFLAG:-} - name: Constellation iam create gcp shell: bash diff --git a/.github/actions/constellation_iam_destroy/action.yml b/.github/actions/constellation_iam_destroy/action.yml index 1f2f46bab..bc9adef0c 100644 --- a/.github/actions/constellation_iam_destroy/action.yml +++ b/.github/actions/constellation_iam_destroy/action.yml @@ -39,4 +39,8 @@ runs: - name: Delete IAM configuration shell: bash run: | - constellation iam destroy --yes --tf-log=DEBUG + output=$(constellation --help) + if [[ $output == *"tf-log"* ]]; then + TFFLAG="--tf-log=DEBUG" + fi + constellation iam destroy --yes ${TFFLAG:-}