-
Notifications
You must be signed in to change notification settings - Fork 507
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
Panic: not a string #647
Comments
@hassanalinali could you hint us about the content of the directory you ran |
@hassanalinali the command you ran seems to be |
Hello @hassanalinali, |
Hi @patilpankaj212, I will leave the logs below Logs
|
Thanks @hassanalinali, looking at the logs, panic was generated while resolving the value of variable |
Yes, it's just a list of strings.
|
@hassanalinali, can you please add a type to that variable and try to scan again?
let me know if this resolves the isssue. |
It does work properly if I specify the type for all of my lists. Is this an intentional limitation of the parser or could it be fixed easily? |
It looks like a defect in the ref resolver, but would need to debug around that. For now would declaring the type of the variable work for you? |
Yes, that works! I will close the issue and thanks for helping me! |
Description
I tried to run terrascan scan for the first time on an existing terraform configuration and it fails.
What I Did
Could someone guide me and figure out from which file/line this took place?
The text was updated successfully, but these errors were encountered: