CS-15155 : need to eject CD before destroy vbd

reviewed-by : kelven
This commit is contained in:
anthony 2012-05-31 17:29:40 -07:00
parent 00dfebf26c
commit 9f1e1faac3
1 changed files with 1 additions and 0 deletions

View File

@ -1110,6 +1110,7 @@ public abstract class CitrixResourceBase implements ServerResource, HypervisorRe
Set<VBD> vbds = vm.getVBDs(conn);
for( VBD vbd : vbds ) {
if (vbd.getType(conn) == Types.VbdType.CD ) {
vbd.eject(conn);
vbd.destroy(conn);
break;
}