mirror of https://github.com/apache/cloudstack.git
CS-15155 : need to eject CD before destroy vbd
reviewed-by : kelven
This commit is contained in:
parent
00dfebf26c
commit
9f1e1faac3
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue