File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
server/src/main/java/org/apache/cloudstack/backup Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -350,11 +350,11 @@ public BackupOffering cloneBackupOffering(final CloneBackupOfferingCmd cmd) {
350350 if (!provider .isValidProviderOffering (zoneId , externalId )) {
351351 throw new CloudRuntimeException ("Backup offering '" + externalId + "' does not exist on provider " + provider .getName () + " on zone " + zoneId );
352352 }
353+ }
353354
354- final BackupOffering existingOffering = backupOfferingDao .findByExternalId (externalId , zoneId );
355- if (existingOffering != null ) {
356- throw new CloudRuntimeException ("A backup offering with external ID '" + externalId + "' already exists in this zone" );
357- }
355+ final BackupOffering existingOffering = backupOfferingDao .findByExternalId (externalId , zoneId );
356+ if (existingOffering != null ) {
357+ throw new CloudRuntimeException ("A backup offering with external ID '" + externalId + "' already exists in this zone" );
358358 }
359359
360360 final BackupOfferingVO clonedOffering = new BackupOfferingVO (
You can’t perform that action at this time.
0 commit comments