1
0
mirror of https://github.com/Napsty/check_esxi_hardware.git synced 2024-10-22 12:13:46 +02:00

Corected lcd condition

This commit is contained in:
Claudio Kuenzler 2017-09-02 11:21:31 +02:00 committed by GitHub
parent 7d4a85d0f3
commit 9ea8ba5967

View File

@ -694,7 +694,14 @@ for classe in ClassesToCheck :
# Ignore element if we don't want it # Ignore element if we don't want it
if elementName in ignore_list : if elementName in ignore_list :
verboseoutput(" (ignored)") verboseoutput(" (ignored)")
continue continue
# Append lcd related elements to ignore list if --no-lcd was used
verboseoutput("LCD Status: %s" % get_lcd)
if not get_lcd:
ignore_list.append("System Board 1 LCD Cable Pres 0: Connected")
ignore_list.append("System Board 1 VGA Cable Pres 0: Connected")
ignore_list.append("Front Panel Board 1 FP LCD Cable 0: Connected")
# BIOS & Server info # BIOS & Server info
if elementName == 'System BIOS' : if elementName == 'System BIOS' :
@ -792,13 +799,6 @@ for classe in ClassesToCheck :
verboseoutput(" Family = %d" % instance['Family']) verboseoutput(" Family = %d" % instance['Family'])
verboseoutput(" CurrentClockSpeed = %dMHz" % instance['CurrentClockSpeed']) verboseoutput(" CurrentClockSpeed = %dMHz" % instance['CurrentClockSpeed'])
# Append lcd related elements to ignore list if --no-lcd was used
verboseoutput("LCD Status: %s" % get_lcd)
if get_lcd == "False":
ignore_list.append("System Board 1 LCD Cable Pres 0: Connected")
ignore_list.append("System Board 1 VGA Cable Pres 0: Connected")
ignore_list.append("Front Panel Board 1 FP LCD Cable 0: Connected")
# HP Check # HP Check
if vendor == "hp" : if vendor == "hp" :
if instance['HealthState'] is not None : if instance['HealthState'] is not None :