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

Fixed uninitialized variable isblade

This commit is contained in:
Napsty 2014-09-16 13:27:48 +02:00
parent 6abc24f522
commit d67db0b2ff

View File

@ -207,7 +207,7 @@
#@ Author : Claudio Kuenzler (www.claudiokuenzler.com) #@ Author : Claudio Kuenzler (www.claudiokuenzler.com)
#@ Reason : Another two workarounds for Dell systems (VGA Cable Pres 0, Add-in Card 4 PEM Presence 0) #@ Reason : Another two workarounds for Dell systems (VGA Cable Pres 0, Add-in Card 4 PEM Presence 0)
#@--------------------------------------------------- #@---------------------------------------------------
#@ Date : 20140909 #@ Date : 20140916
#@ Author : Claudio Kuenzler (www.claudiokuenzler.com) #@ Author : Claudio Kuenzler (www.claudiokuenzler.com)
#@ Reason : Output serial number of chassis if a blade server is checked #@ Reason : Output serial number of chassis if a blade server is checked
#@--------------------------------------------------- #@---------------------------------------------------
@ -219,7 +219,7 @@ import re
import string import string
from optparse import OptionParser,OptionGroup from optparse import OptionParser,OptionGroup
version = '20140319' version = '20140916'
NS = 'root/cimv2' NS = 'root/cimv2'
@ -319,6 +319,9 @@ ExitWarning = 1
ExitCritical = 2 ExitCritical = 2
ExitUnknown = 3 ExitUnknown = 3
# Special handling for blade servers
isblade = "no"
def dell_country(country): def dell_country(country):
if country == 'at': # Austria if country == 'at': # Austria
return 'at/de/' return 'at/de/'