combine check

This commit is contained in:
Pearl Dsilva 2026-02-11 09:47:47 -05:00
parent ec53d6f745
commit 255144f383
1 changed files with 0 additions and 2 deletions

View File

@ -350,9 +350,7 @@ public class BackupManagerImpl extends ManagerBase implements BackupManager {
if (!provider.isValidProviderOffering(sourceOffering.getZoneId(), externalId)) {
throw new CloudRuntimeException("Backup offering '" + externalId + "' does not exist on provider " + provider.getName() + " on zone " + sourceOffering.getZoneId());
}
}
if (!Objects.equals(sourceOffering.getExternalId(), externalId)) {
final BackupOffering existingOffering = backupOfferingDao.findByExternalId(externalId, sourceOffering.getZoneId());
if (existingOffering != null) {
throw new CloudRuntimeException("A backup offering with external ID '" + externalId + "' already exists in this zone");