mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
explanatory error message on delete attempt of default system offering (#8883)
Co-authored-by: Gabriel Pordeus Santos <gabrielpordeus@gmail.com>
This commit is contained in:
parent
cec6ade257
commit
eead2710f8
@ -4204,7 +4204,7 @@ public class ConfigurationManagerImpl extends ManagerBase implements Configurati
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (offering.getDefaultUse()) {
|
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);
|
final User user = _userDao.findById(userId);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user