Skip to content

Commit 21419d1

Browse files
committed
fix
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
1 parent 07e70f2 commit 21419d1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

services/secondary-storage/server/src/main/java/org/apache/cloudstack/storage/template/UploadManagerImpl.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,9 @@ public Answer handleDeleteEntityDownloadURLCommand(DeleteEntityDownloadURLComman
349349
// FIXME - Ideally should bail out if you can't delete symlink. Not doing it right now.
350350
// This is because the ssvm might already be destroyed and the symlinks do not exist.
351351
logger.warn("Error in deleting symlink :" + result);
352+
} else {
353+
deleteEntitySymlinkRootPathIfNeeded(cmd, linkPath);
352354
}
353-
deleteEntitySymlinkRootPathIfNeeded(cmd, linkPath);
354355
}
355356

356357
// If its a volume or archive also delete the Hard link since it was created only for the purpose of download.

0 commit comments

Comments
 (0)