mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
Fix coverity scan 1323172
This commit is contained in:
parent
e586d11a1b
commit
c15729e71a
@ -409,6 +409,9 @@ public class SnapshotServiceImpl implements SnapshotService {
|
||||
@Override
|
||||
public boolean revertSnapshot(SnapshotInfo snapshot) {
|
||||
SnapshotInfo snapshotOnPrimaryStore = _snapshotFactory.getSnapshot(snapshot.getId(), DataStoreRole.Primary);
|
||||
if (snapshotOnPrimaryStore == null) {
|
||||
throw new CloudRuntimeException("Cannot find an entry for snapshot " + snapshot.getId() + " on primary storage pools");
|
||||
}
|
||||
PrimaryDataStore store = (PrimaryDataStore)snapshotOnPrimaryStore.getDataStore();
|
||||
|
||||
AsyncCallFuture<SnapshotResult> future = new AsyncCallFuture<SnapshotResult>();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user