Removing extra details in error message (#6835)

Co-authored-by: Stephan Krug <stephan.krug@scclouds.com.br>
This commit is contained in:
Stephan Krug 2022-10-23 06:54:08 -03:00 committed by GitHub
parent 4a06363749
commit c37709c44b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1596,7 +1596,8 @@ public class VpcManagerImpl extends ManagerBase implements VpcManager, VpcProvis
try { try {
// check number of active networks in vpc // check number of active networks in vpc
if (_ntwkDao.countVpcNetworks(vpc.getId()) >= _maxNetworks) { 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 // 1) CIDR is required