1
0
mirror of https://github.com/Napsty/check_esxi_hardware.git synced 2024-11-25 03:43:49 +01:00

fix model name detection

This commit is contained in:
Phil Randal 2013-07-25 14:27:46 +01:00
parent bcd0af64fd
commit 04c6b7bcdb

View File

@ -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()