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 @@ -358,11 +358,11 @@ public BackupOffering cloneBackupOffering(final CloneBackupOfferingCmd cmd) {
358358 if (!provider .isValidProviderOffering (zoneId , externalId )) {
359359 throw new CloudRuntimeException ("Backup offering '" + externalId + "' does not exist on provider " + provider .getName () + " on zone " + zoneId );
360360 }
361+ }
361362
362- final BackupOffering existingOffering = backupOfferingDao .findByExternalId (externalId , zoneId );
363- if (existingOffering != null ) {
364- throw new CloudRuntimeException ("A backup offering with external ID '" + externalId + "' already exists in this zone" );
365- }
363+ final BackupOffering existingOffering = backupOfferingDao .findByExternalId (externalId , zoneId );
364+ if (existingOffering != null ) {
365+ throw new CloudRuntimeException ("A backup offering with external ID '" + externalId + "' already exists in this zone" );
366366 }
367367
368368 final BackupOfferingVO clonedOffering = new BackupOfferingVO (
You can’t perform that action at this time.
0 commit comments