CLOUDSTACK-7266: Deleting account is not cleaning the snapshot entries

in secondary storage.
This commit is contained in:
Min Chen 2014-08-21 18:00:32 -07:00
parent 68b95aec0f
commit 902a9c5b70

View File

@ -1525,7 +1525,7 @@ public class NfsSecondaryStorageResource extends ServerResourceBase implements S
private String deleteLocalFile(String fullPath) {
Script command = new Script("/bin/bash", s_logger);
command.add("-c");
command.add("rm -f " + fullPath);
command.add("rm -rf " + fullPath);
String result = command.execute();
if (result != null) {
String errMsg = "Failed to delete file " + fullPath + ", err=" + result;