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:
commit
d029ed46ae
@ -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(2)
|
||||||
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