bug 11675: optimized the code

This commit is contained in:
Abhinandan Prateek 2011-10-11 16:46:15 +05:30 committed by root
parent 5d6a48dd26
commit 4a3b4d21c3
1 changed files with 1 additions and 4 deletions

View File

@ -387,12 +387,9 @@ public class XcpServerDiscoverer extends DiscovererBase implements Discoverer, L
String prodBrand = record.softwareVersion.get("product_brand").trim();
String prodVersion = record.softwareVersion.get("product_version").trim();
if(prodBrand.equals("XCP") && prodVersion.equals("1.0.0"))
if(prodBrand.equals("XCP") && (prodVersion.equals("1.0.0") || prodVersion.equals("1.1.0")))
return new XcpServerResource();
if(prodBrand.equals("XCP") && prodVersion.equals("1.1.0"))
return new XcpServerResource();
if(prodBrand.equals("XenServer") && prodVersion.equals("5.6.0"))
return new XenServer56Resource();