Skip to content

Commit a20b6cc

Browse files
Correction on merge conflicts for constants
1 parent 929d30f commit a20b6cc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • plugins/storage/volume/ontap/src/main/java/org/apache/cloudstack/storage/service

plugins/storage/volume/ontap/src/main/java/org/apache/cloudstack/storage/service/StorageStrategy.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ public Volume createStorageVolume(String volumeName, Long size) {
257257
}
258258
String jobUUID = jobResponse.getJob().getUuid();
259259

260-
Boolean jobSucceeded = jobPollForSuccess(jobUUID,OntapStorageConstants.JOB_MAX_RETRIES, OntapStorageConstants.CREATE_VOLUME_CHECK_SLEEP_TIME);
260+
Boolean jobSucceeded = jobPollForSuccess(jobUUID,10, 1);
261261
if (!jobSucceeded) {
262262
logger.error("Volume creation job failed for volume: " + volumeName);
263263
throw new CloudRuntimeException("Volume creation job failed for volume: " + volumeName);
@@ -341,7 +341,7 @@ public void deleteStorageVolume(Volume volume) {
341341
try {
342342
// TODO: Implement lun and file deletion, if any, before deleting the volume
343343
JobResponse jobResponse = volumeFeignClient.deleteVolume(authHeader, volume.getUuid());
344-
Boolean jobSucceeded = jobPollForSuccess(jobResponse.getJob().getUuid(),OntapStorageConstants.JOB_MAX_RETRIES, OntapStorageConstants.CREATE_VOLUME_CHECK_SLEEP_TIME);
344+
Boolean jobSucceeded = jobPollForSuccess(jobResponse.getJob().getUuid(),10, 1);
345345
if (!jobSucceeded) {
346346
logger.error("Volume deletion job failed for volume: " + volume.getName());
347347
throw new CloudRuntimeException("Volume deletion job failed for volume: " + volume.getName());

0 commit comments

Comments
 (0)