This is an automated email from the ASF dual-hosted git repository.
DaanHoogland pushed a commit to branch 4.20
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/4.20 by this push:
new b36f06482fa fix misleading error message (#13450)
b36f06482fa is described below
commit b36f06482fad3c5fa15cae02df0d696b4f659fc7
Author: Bernardo De Marco Gonçalves <[email protected]>
AuthorDate: Mon Jun 22 03:14:51 2026 -0300
fix misleading error message (#13450)
---
.../src/main/java/org/apache/cloudstack/backup/BackupManagerImpl.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/server/src/main/java/org/apache/cloudstack/backup/BackupManagerImpl.java
b/server/src/main/java/org/apache/cloudstack/backup/BackupManagerImpl.java
index b3b22e98e45..c3e7aa94f6a 100644
--- a/server/src/main/java/org/apache/cloudstack/backup/BackupManagerImpl.java
+++ b/server/src/main/java/org/apache/cloudstack/backup/BackupManagerImpl.java
@@ -783,7 +783,7 @@ public class BackupManagerImpl extends ManagerBase
implements BackupManager {
accountManager.checkAccess(CallContext.current().getCallingAccount(),
null, true, vm);
if (vm.getBackupOfferingId() != null &&
!BackupEnableAttachDetachVolumes.value()) {
- throw new CloudRuntimeException("The selected VM has backups,
cannot restore and attach volume to the VM.");
+ throw new CloudRuntimeException("The selected VM is attached to a
backup offering and, thus, it is not possible to restore and attach volumes
from backups to the instance.");
}
if (backup.getZoneId() != vm.getDataCenterId()) {