mirror of
https://github.com/Napsty/check_esxi_hardware.git
synced 2024-11-22 10:23:49 +01:00
fix model name detection
This commit is contained in:
parent
bcd0af64fd
commit
04c6b7bcdb
@ -377,7 +377,7 @@ def urlised_server_info(vendor, country, server_info):
|
|||||||
if (server_info is not None) :
|
if (server_info is not None) :
|
||||||
p=re.match('(.*)PowerEdge (.*) (.*)',server_info)
|
p=re.match('(.*)PowerEdge (.*) (.*)',server_info)
|
||||||
if (p is not None) :
|
if (p is not None) :
|
||||||
md=p.group(3)
|
md=p.group(2)
|
||||||
if md == 'R210 II':
|
if md == 'R210 II':
|
||||||
md='r210-2'
|
md='r210-2'
|
||||||
md=md.lower()
|
md=md.lower()
|
||||||
|
Loading…
Reference in New Issue
Block a user