sureshanaparti commented on a change in pull request #4525:
URL: https://github.com/apache/cloudstack/pull/4525#discussion_r539102487
##########
File path:
plugins/hypervisors/xenserver/src/main/java/com/cloud/hypervisor/xenserver/resource/CitrixResourceBase.java
##########
@@ -1499,7 +1499,10 @@ public void destroyPatchVbd(final Connection conn, final
String vmName) throws X
final Set<VBD> vbds = vm.getVBDs(conn);
for (final VBD vbd : vbds) {
if (vbd.getType(conn) == Types.VbdType.CD) {
- vbd.eject(conn);
+ if (!vbd.getEmpty(conn)) {
Review comment:
@rhtyd Makes sense to eject only when ISO is inserted. Verified that
this is being handled in all cases before ejecting vdb, except here.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]