-
Notifications
You must be signed in to change notification settings - Fork 150
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
"Must Contain Tags" Not working #106
Comments
I looked at the json output and it seems that even if the tags are not defined in the tf file there is still a tags object with the value of null
So this behavior may be correct. |
I think I worked around it by doing the following which checks if the value is not null
|
Very nice find. I think we may need a step that will trigger your last step, something like ;
|
This is implemented on |
I have tested 1.0.11. There still seems to be something going. I'll try to explain. With 1.0.11 the following two scenarios behave the same:
and
I now have many more scenarios than when I opened this issue. At the moment I have tags on all taggable resources used in my tf file. When I run the test, the first scenario below still fails but the second one passes.
I am not sure how it thinks that tags are set to None when the security group definitely has tags set. I am attaching plan.out json fro review. |
This looks like a bug to me, trying to fix it. |
Could you please try again with |
Assuming this is fixed, please re-open the issue if this is not working for you. |
I have some resources in a main.tf file which support tags, however even if tags are not supplied the following scenario still passes:
These is what's in the main.tf file:
Here is the output from the run:
Am I missing anything here?
Thanks in advance.
The text was updated successfully, but these errors were encountered: