Skip to content

Commit 4f497e5

Browse files
Gupta, SuryaGupta, Surya
authored andcommitted
CSTACKEX-16 CreateAsync Impl
1 parent 6aa03c8 commit 4f497e5

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

plugins/storage/volume/ontap/src/main/java/org/apache/cloudstack/storage/driver/OntapPrimaryDatastoreDriver.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,6 @@ public void createAsync(DataStore dataStore, DataObject dataObject, AsyncComplet
124124
if (dataStore == null) {
125125
throw new InvalidParameterValueException("createAsync: dataStore should not be null");
126126
}
127-
if (callback == null) {
128-
throw new InvalidParameterValueException("createAsync: callback should not be null");
129-
}
130-
131127
try {
132128
s_logger.info("createAsync: Started for data store name [{}] and data object name [{}] of type [{}]",
133129
dataStore.getName(), dataObject.getName(), dataObject.getType());
@@ -387,6 +383,7 @@ public boolean grantAccess(DataObject dataObject, Host host, DataStore dataStore
387383
volumeDao.update(volumeVO.getId(), volumeVO);
388384
} else if (dataObject.getType() == DataObjectType.SNAPSHOT) {
389385
s_logger.info("grantAccess: SNAPSHOT type — no-op for ONTAP (LUN clone already exists from takeSnapshot)");
386+
return true;
390387
//grantAccessForSnapshot((SnapshotInfo) dataObject, host, storagePool);
391388
} else {
392389
s_logger.error("Invalid DataObjectType (" + dataObject.getType() + ") passed to grantAccess");

0 commit comments

Comments
 (0)