bug 14582: fix one big in upgrade from 2.1.4 to 3.0.2

status 14582: resolved
This commit is contained in:
anthony 2012-04-20 17:01:45 -07:00
parent e23b2ac1fd
commit bbd0259ad2
1 changed files with 1 additions and 1 deletions

View File

@ -676,7 +676,7 @@ public class StorageManagerImpl implements StorageManager, Manager, ClusterManag
}
String basicErrMsg = "Failed to create volume from " + snapshot.getName() + " on pool " + pool;
try {
if (snapshot.getSwiftId() != null) {
if (snapshot.getSwiftId() != null && snapshot.getSwiftId() != 0) {
_snapshotMgr.downloadSnapshotsFromSwift(snapshot);
}
CreateVolumeFromSnapshotCommand createVolumeFromSnapshotCommand = new CreateVolumeFromSnapshotCommand(primaryStoragePoolNameLabel, secondaryStoragePoolUrl, dcId, accountId, volumeId,