Skip to content

Commit 64eb2df

Browse files
author
abhi
committed
bug 14224: allowing Xenserver 6.0.2, with the assumption that the same patches and guest os type will work as with 6.0
1 parent 87a32a4 commit 64eb2df

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎server/src/com/cloud/hypervisor/xen/discoverer/XcpServerDiscoverer.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ protected CitrixResourceBase createServerResource(long dcId, Long podId, Host.Re
413413
if(prodBrand.equals("XenServer") && prodVersion.equals("5.6.0"))
414414
return new XenServer56Resource();
415415

416-
if(prodBrand.equals("XenServer") && prodVersion.equals("6.0.0"))
416+
if(prodBrand.equals("XenServer") && prodVersion.startsWith("6.0"))
417417
return new XenServer600Resource();
418418

419419
if(prodBrand.equals("XenServer") && prodVersion.equals("5.6.100")) {
@@ -425,7 +425,7 @@ protected CitrixResourceBase createServerResource(long dcId, Long podId, Host.Re
425425
}
426426
}
427427

428-
String msg = "Only support XCP 1.0.0, XCP 1.1.0, XenServer 5.6, XenServer 5.6 FP1 and XenServer 5.6 SP2, but this one is " + prodBrand + " " + prodVersion;
428+
String msg = "Only support XCP 1.0.0, XCP 1.1.0, XenServer 5.6, XenServer 5.6 FP1, XenServer 5.6 SP2, Xenserver 6.0 but this one is " + prodBrand + " " + prodVersion;
429429
_alertMgr.sendAlert(AlertManager.ALERT_TYPE_HOST, dcId, podId, msg, msg);
430430
s_logger.debug(msg);
431431
throw new RuntimeException(msg);

0 commit comments

Comments
 (0)