-
Notifications
You must be signed in to change notification settings - Fork 465
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
Debian 7 : The reported error was: float() argument must be a string or a number #56
Comments
Hey Romain! Thanks for the bug report. It's weird, cause I can't reproduce it with Debian v7.9. I'm running Ansible 2.0.0.2, so it could be that the problem is somewhere in between v2.0 and v2.1. Can you paste the ""ansible_memory_mb" section from the offending host (looks like it's test.server.com)? That's where the problem should be located. |
Running ansible-cmdb on OSX with the same Json file doesn't trigger any error. |
Hm, that is very strange. It should look like this:
|
The host on which I ran ansible -m setup is an OpenVZ VM, which is why there is no cache value.
|
Ah, that makes sense! Is there a valid "real" action with proper numbers, or is that also unavailable? |
Sorry, I meant "section" instead of "action" |
I don't think so. Would it be possible to set the value to 0 if it's returned as "null" ? |
I've just pushed a fix that returns "n/a" for that column in the host overview. It should be able to handle those hosts now. I'ts not a great fix, but the best I can do right now. |
Thanks a lot! |
You're welcome! Thanks for reporting the bug! |
Oh, if the swap column is also not available, you may also get an error on that. I would be helpful if I had the whole output of ansible setup, so I can check everything. Could you send that to my email address (ferry.boender@gmail.com), or is it too sensitive? |
Getting an error while trying to generate a report for any number of servers.
Same command is working on OSX without any issue.
Additional infos
The text was updated successfully, but these errors were encountered: