Skip to content

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

@dmwhite1127

Description

@dmwhite1127

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions