Skip to content

Commit 255144f

Browse files
committed
combine check
1 parent ec53d6f commit 255144f

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
@@ -350,9 +350,7 @@ public BackupOffering cloneBackupOffering(final CloneBackupOfferingCmd cmd) {
350350
if (!provider.isValidProviderOffering(sourceOffering.getZoneId(), externalId)) {
351351
throw new CloudRuntimeException("Backup offering '" + externalId + "' does not exist on provider " + provider.getName() + " on zone " + sourceOffering.getZoneId());
352352
}
353-
}
354353

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

0 commit comments

Comments
 (0)