mirror of
https://github.com/Napsty/check_esxi_hardware.git
synced 2024-11-22 10:23:49 +01:00
Fix detection of PowerEdge R210 II
This commit is contained in:
parent
dd420fc96a
commit
bcd0af64fd
@ -377,12 +377,10 @@ 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) :
|
||||||
modelname=p.group(3)
|
md=p.group(3)
|
||||||
if modelname == 'R210 II':
|
if md == 'R210 II':
|
||||||
md='r210-2'
|
md='r210-2'
|
||||||
else:
|
md=md.lower()
|
||||||
md=p.group(2)
|
|
||||||
md=md.lower()
|
|
||||||
server_info = p.group(1) + '<a href="' + du + md + '#ui-tabs-4">PowerEdge ' + p.group(2)+'</a> ' + p.group(3)
|
server_info = p.group(1) + '<a href="' + du + md + '#ui-tabs-4">PowerEdge ' + p.group(2)+'</a> ' + p.group(3)
|
||||||
elif vendor == 'hp':
|
elif vendor == 'hp':
|
||||||
return server_info
|
return server_info
|
||||||
|
Loading…
Reference in New Issue
Block a user