1
0
mirror of https://github.com/Napsty/check_esxi_hardware.git synced 2024-11-24 19:33:48 +01:00

Merge pull request #3 from philrandal/master

Fix detection of PowerEdge R210 II
This commit is contained in:
Napsty 2013-07-25 06:31:10 -07:00
commit d029ed46ae

View File

@ -377,12 +377,10 @@ def urlised_server_info(vendor, country, server_info):
if (server_info is not None) :
p=re.match('(.*)PowerEdge (.*) (.*)',server_info)
if (p is not None) :
modelname=p.group(3)
if modelname == 'R210 II':
md=p.group(2)
if md == 'R210 II':
md='r210-2'
else:
md=p.group(2)
md=md.lower()
md=md.lower()
server_info = p.group(1) + '<a href="' + du + md + '#ui-tabs-4">PowerEdge ' + p.group(2)+'</a> ' + p.group(3)
elif vendor == 'hp':
return server_info