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

Line 773 - ValueError: could not convert sring to float: (n/a) #66

Open
dmwhite1127 opened this issue Mar 22, 2022 · 1 comment
Open

Comments

@dmwhite1127
Copy link

The following occurs when I run check_idrac against a server with iDRAC 8 that currently has last redundancy on 1 PSU:

Traceback (most recent call last):
  File "./check_idrac", line 874, in <module>
      result, tmp_code = PARSER().main()
  File "./check_idrac", line 773, in main
       else: hw_4 = float(hw[4]/10

I (temporarily) fixed this by changing line 773 as follows:
else: hw_4 = hw[4].split('(')[0]

I'm no advanced programmer, and I have no idea if that was the proper thing to do, but it seemed reasonable as I was looking at some of the surrounding code.

It should be noted that there is no issue with the original code when it runs against a healthy iDRAC 8 machine.

@hmakmur
Copy link

hmakmur commented Mar 26, 2022

Thanks for fixing this. I too had the same issue recently and fixed it with your patch!!

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