-
Notifications
You must be signed in to change notification settings - Fork 52
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
Do not set workspace if it is default
.
#18
base: master
Are you sure you want to change the base?
Conversation
Seems reasonable. I was just thinking, as soon as I saw your PR title, that maybe workspace should default to |
That's fine too. Maybe have it default to an empty string, just in case someone has a workspace named |
Ah. I probably wasn't clear enough there. I mean the special Python value, |
Sounds good to me. Do you want me to have a go at making it that way? |
Had a go. Seems to work. Python is not familiar to me, so please critique. If it looks good, I please let me squash commits before merging. |
Given a quick eyeball, looks correct to me. I'll give it a little manual test later today... but I think you can go ahead and do your squash if you like. |
Terraform Cloud does not support workspaces when you specify a specific workspace name. Running `terraform.py` with a Terraform Cloud backend configured this way produces the error 'workspaces not supported'. With this commit we only invoke the command to set the workspace if the `TERRAFORM_WS_NAME` workspace environment variable is set.
Squashed. Thank you for writing this useful utility. |
I run this more or less as a weekend project. I'll get to merging in the next couple days. Thanks for your contribution! 😄 |
Terraform Cloud does not support workspaces. Running
terraform.py
with a Terraform Cloud backend produces the error 'workspaces not supported'.With this commit we invoke the command to set the namespace with the
-no-color
option to receive a plain-text UTF-8 response without terminal color codes. If the stderr response is empty or 'workspaces not supported', we continue with program operation.