mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Removing extra details in error message (#6835)
Co-authored-by: Stephan Krug <stephan.krug@scclouds.com.br>
This commit is contained in:
parent
4a06363749
commit
c37709c44b
@ -1596,7 +1596,8 @@ public class VpcManagerImpl extends ManagerBase implements VpcManager, VpcProvis
|
||||
try {
|
||||
// check number of active networks in vpc
|
||||
if (_ntwkDao.countVpcNetworks(vpc.getId()) >= _maxNetworks) {
|
||||
throw new CloudRuntimeException("Number of networks per VPC can't extend " + _maxNetworks + "; increase it using global config " + Config.VpcMaxNetworks);
|
||||
s_logger.warn(String.format("Failed to create a new VPC Guest Network because the number of networks per VPC has reached its maximum capacity of [%s]. Increase it by modifying global config [%s].", _maxNetworks, Config.VpcMaxNetworks));
|
||||
throw new CloudRuntimeException(String.format("Number of networks per VPC cannot surpass [%s].", _maxNetworks));
|
||||
}
|
||||
|
||||
// 1) CIDR is required
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user