-
Notifications
You must be signed in to change notification settings - Fork 331
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
Skip Terraform version checks when not needed #613
Conversation
Terraform should not be a dependency for invocations that don't include --cloud or --tf-resource
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not enough. It should be check also in the termination
@DavidGOrtega, is there any scenario where the termination code is executed without reaching first the startup code? |
Non cloud runner do not have tf-resource however when terminating is going to try to destroy |
🤦🏼 So true! |
@DavidGOrtega, please take a look at the latest changes. I haven't tested them yet, but it looks like that should do the trick. 🙊 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 lgtm however I will try it first. You dont have to!
Additionally, refactor block to use true conditionals instead of && shortcut conditionals.
0572a3a
to
a0e0f57
Compare
Terraform should not be a dependency for invocations that don't include
--cloud
or--tf-resource
options. Should fix #612.