mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-5541: Template Creation from snapshot failed with S3 store.
This commit is contained in:
parent
231e7c01f2
commit
bb91b739a8
@ -497,11 +497,9 @@ public class AncientDataMotionStrategy implements DataMotionStrategy {
|
||||
answer = ep.sendMessage(cmd);
|
||||
}
|
||||
}
|
||||
// clean up cache entry in case of failure
|
||||
if (answer == null || !answer.getResult()) {
|
||||
if (cacheData != null) {
|
||||
cacheMgr.deleteCacheObject(cacheData);
|
||||
}
|
||||
// clean up cache entry
|
||||
if (cacheData != null) {
|
||||
cacheMgr.deleteCacheObject(cacheData);
|
||||
}
|
||||
return answer;
|
||||
} catch (Exception e) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user