This is an automated email from the ASF dual-hosted git repository.
dahn pushed a commit to branch 4.18
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/4.18 by this push:
new eead2710f81 explanatory error message on delete attempt of default
system offering (#8883)
eead2710f81 is described below
commit eead2710f81858ff889f526c6d1955d0b91cca5f
Author: dahn <[email protected]>
AuthorDate: Thu Apr 25 16:45:42 2024 +0200
explanatory error message on delete attempt of default system offering
(#8883)
Co-authored-by: Gabriel Pordeus Santos <[email protected]>
---
.../src/main/java/com/cloud/configuration/ConfigurationManagerImpl.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/server/src/main/java/com/cloud/configuration/ConfigurationManagerImpl.java
b/server/src/main/java/com/cloud/configuration/ConfigurationManagerImpl.java
index 080bb83253c..f0e7522bc79 100644
--- a/server/src/main/java/com/cloud/configuration/ConfigurationManagerImpl.java
+++ b/server/src/main/java/com/cloud/configuration/ConfigurationManagerImpl.java
@@ -4204,7 +4204,7 @@ public class ConfigurationManagerImpl extends ManagerBase
implements Configurati
}
if (offering.getDefaultUse()) {
- throw new InvalidParameterValueException("Default service
offerings cannot be deleted");
+ throw new InvalidParameterValueException(String.format("The system
service offering [%s] is marked for default use and cannot be deleted",
offering.getDisplayText()));
}
final User user = _userDao.findById(userId);