Skip to content

Commit 0d6d1e2

Browse files
committed
resolve comment
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
1 parent adc5a33 commit 0d6d1e2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

services/secondary-storage/server/src/main/java/org/apache/cloudstack/storage/resource/NfsSecondaryStorageResource.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1998,9 +1998,8 @@ private void savePostUploadPSK(String psk) {
19981998
}
19991999

20002000
protected String getSnapshotFilepathForDelete(String path, String snapshotName) {
2001-
String finalPath = path + "/*" + snapshotName + "*";
20022001
if (!path.endsWith(snapshotName)) {
2003-
return finalPath;
2002+
return path + "/*" + snapshotName + "*";
20042003
}
20052004
if (s_logger.isDebugEnabled()) {
20062005
s_logger.debug(String.format("Snapshot file %s is present in the same name directory %s. Deleting the directory", snapshotName, path));

0 commit comments

Comments
 (0)