mirror of
https://github.com/Napsty/check_esxi_hardware.git
synced 2024-11-22 02:13:46 +01:00
Define lcd ignore list before checking classes
This commit is contained in:
parent
9ea8ba5967
commit
0e62849ffb
@ -606,6 +606,13 @@ if cimport:
|
|||||||
verboseoutput("Using manually defined CIM port "+cimport)
|
verboseoutput("Using manually defined CIM port "+cimport)
|
||||||
hosturl += ':'+cimport
|
hosturl += ':'+cimport
|
||||||
|
|
||||||
|
# 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")
|
||||||
|
|
||||||
# connection to host
|
# connection to host
|
||||||
verboseoutput("Connection to "+hosturl)
|
verboseoutput("Connection to "+hosturl)
|
||||||
# pywbem 0.7.0 handling is special, some patched 0.7.0 installations work differently
|
# pywbem 0.7.0 handling is special, some patched 0.7.0 installations work differently
|
||||||
@ -696,13 +703,6 @@ for classe in ClassesToCheck :
|
|||||||
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' :
|
||||||
bios_info = instance[u'Name'] + ': ' \
|
bios_info = instance[u'Name'] + ': ' \
|
||||||
|
Loading…
Reference in New Issue
Block a user