Skip to content

Commit 4a130ce

Browse files
committed
combine check
1 parent f03bef5 commit 4a130ce

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

server/src/main/java/org/apache/cloudstack/backup/BackupManagerImpl.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,9 +358,7 @@ public BackupOffering cloneBackupOffering(final CloneBackupOfferingCmd cmd) {
358358
if (!provider.isValidProviderOffering(sourceOffering.getZoneId(), externalId)) {
359359
throw new CloudRuntimeException("Backup offering '" + externalId + "' does not exist on provider " + provider.getName() + " on zone " + sourceOffering.getZoneId());
360360
}
361-
}
362361

363-
if (!Objects.equals(sourceOffering.getExternalId(), externalId)) {
364362
final BackupOffering existingOffering = backupOfferingDao.findByExternalId(externalId, sourceOffering.getZoneId());
365363
if (existingOffering != null) {
366364
throw new CloudRuntimeException("A backup offering with external ID '" + externalId + "' already exists in this zone");

0 commit comments

Comments
 (0)