-
Notifications
You must be signed in to change notification settings - Fork 468
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
Parsing SDA Size No Longer Working #226
Comments
Ansible Facts from last rendered host
|
Try adding a debug statement to your custom csv template. Something like the
It's always best to provide defaults when using
It's difficult to say what the problem is here. Try adding the debug line I mentioned above and then inspecting the problematic fact file in a JSON editor. See if
We're running Ansible 2.11.3 and it's working fine, so 2.9.14 should also work. |
I have the following lamdba statement in a custom csv template
{"title": "Disk1", "id": "disk1", "visible": True, "field": lambda h: host['ansible_facts'].get('ansible_devices').get('sda').get('size', '')},
This worked flawlessly previously, but now I am getting an error:
It still seems to work from some items in my inventory, but chokes at some point, and I'm at a loss as to where to look to try to isolate the root cause. Is there another way I should be getting the size of the sda disk?
The only thing that changed regarding inventory is upgrading ansible. Is this application no longer supported on newer versions of Ansible? Currently using
Ansible 2.9.14
The text was updated successfully, but these errors were encountered: