mirror of https://github.com/apache/cloudstack.git
bug 11675: optimized the code
This commit is contained in:
parent
5d6a48dd26
commit
4a3b4d21c3
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue