-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
refactor: remove unnecessary lookup for safer_cluster nodepool ID #2160
refactor: remove unnecessary lookup for safer_cluster nodepool ID #2160
Conversation
Resolve tflint error on an unecessary `lookup()` call in safer_cluster node pool IDs. `each.key` should function properly here, since the name is the key for each of the maps in the map of maps, though `each.value.name` should work as well.
/gcbrun |
Tested planning this locally and seems like it should still work? What was the failure on this one? |
Yeah, it's unrelated to the change, started seeing this in the CI tests today:
I'll re-run the tests tomorrow. |
/gcbrun |
/gcbrun |
/gcbrun |
/gcbrun |
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.
Thanks @wyardley!
Resolve tflint error on an unecessary
lookup()
call in safer_cluster node pool IDs.each.key
should function properly here, since the name is the key for each of the maps in the map of maps, thougheach.value.name
should work as well.I could use
format()
instead of string interpolation instead if it's preferred.BEGIN_COMMIT_OVERRIDE
fix: remove unnecessary lookup for safer_cluster nodepool ID (#2160)
END_COMMIT_OVERRIDE