Skip to content
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

undefined method `each' for #<String:0x0000000001df20e0> (NoMethodError) #29

Open
almereyda opened this issue Mar 31, 2021 · 1 comment

Comments

@almereyda
Copy link

When processing the first playbook at hands, ansible-viz runs into a No MethodError at some point.

Loading ...
Postprocessing ...
Traceback (most recent call last):
	11: from bin/ansible-viz.rb:17:in `<main>'
	10: from bin/ansible-viz.rb:10:in `main'
	9: from /home/yala/src/github.com/aspiers/ansible-viz/lib/ansible_viz/cli.rb:96:in `graph_from_data'
	8: from /home/yala/src/github.com/aspiers/ansible-viz/lib/ansible_viz/postprocessor.rb:15:in `process'
	7: from /home/yala/src/github.com/aspiers/ansible-viz/lib/ansible_viz/postprocessor.rb:15:in `each'
	6: from /home/yala/src/github.com/aspiers/ansible-viz/lib/ansible_viz/postprocessor.rb:15:in `block in process'
	5: from /home/yala/src/github.com/aspiers/ansible-viz/lib/ansible_viz/postprocessor.rb:26:in `process_role'
	4: from /home/yala/src/github.com/aspiers/ansible-viz/lib/ansible_viz/postprocessor.rb:26:in `each'
	3: from /home/yala/src/github.com/aspiers/ansible-viz/lib/ansible_viz/postprocessor.rb:28:in `block in process_role'
	2: from /home/yala/src/github.com/aspiers/ansible-viz/lib/ansible_viz/postprocessor.rb:28:in `each'
	1: from /home/yala/src/github.com/aspiers/ansible-viz/lib/ansible_viz/postprocessor.rb:28:in `block (2 levels) in process_role'
/home/yala/src/github.com/aspiers/ansible-viz/lib/ansible_viz/postprocessor.rb:36:in `process_vars': undefined method `each' for #<String:0x0000000001056530> (NoMethodError)

How would I debug this further?

@nin0-0
Copy link

nin0-0 commented Jan 23, 2023

I'm running into the same error, I thought it was to do with subdirs, so I sed those in all .yml in root dir but to no avail.
funnily, it ran with the subdirs but it didn't find any relations except for one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants