-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Using self.ATTRIBUTE where you shouldn't causes a panic #4808
Comments
Similar panic if I used something which didn't exist, like |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Because I only skimmed the docs, I assumed you could use
self.ATTRIBUTE
anywhere it looked right - like this:This causes a Go panic -
crash.log
here.Having read the docs again, I see that this shouldn't work here ("To reference attributes of your own resource, the syntax is self.ATTRIBUTE...Note that this is only allowed/valid within provisioners."), but I'd expect it to fail more gracefully.
The text was updated successfully, but these errors were encountered: