Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to get correct syntax for -a param when command has a space - ie "state list" #297

Open
andyjballgit opened this issue Feb 6, 2023 · 0 comments

Comments

@andyjballgit
Copy link

ie if i pass

  • 'state list'

it just shows state in the output and shows a usage message

tried "'state list'" and get

tf_action : ''state'

am calling from a github action workflow / job / step as per below

single word actions - like plan , validate work fine with same confired

name: Rover State List
env:
ARM_CLIENT_ID: ${{ steps.GetCredentials.outputs.client_id }}
ARM_CLIENT_SECRET: ${{ steps.GetCredentials.outputs.client_secret }}
run: |
echo "github_workspace : $GITHUB_WORKSPACE"
echo "CONFIG_PATH: ${{env.CONFIG_PATH }}"
if [ ${{ inputs.apply }} == "false" ]; then
echo "Running Rover Plan..."
az login --service-principal --username ${ARM_CLIENT_ID} --password ${ARM_CLIENT_SECRET} --tenant ${{ env.ARM_TENANT_ID }}
/tf/rover/rover.sh -lz /tf/caf/caf_solution
-o /tf/caf/tf.plan
-var-folder ${GITHUB_WORKSPACE}/${{env.CONFIG_PATH }}
-tfstate_subscription_id ${{ env.TFSTATE_SUBSCRIPTION_ID }}
-target_subscription ${{ env.ARM_SUBSCRIPTION_ID }}
-tfstate ${{ env.TF_STATE }}.tfstate
-level ${{ env.LEVEL }}
-env ${{ env.ENVIRONMENT_TAG}}
-a "'state show azurerm_network_security_group.nsg_obj'"
${{ env.rover_vars }}
else
echo "A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant