mirror of https://github.com/apache/cloudstack.git
Revert "Update server/src/main/java/org/apache/cloudstack/storage/template/VnfTemplateManagerImpl.java"
This reverts commit 0bfc65aa00.
This commit is contained in:
parent
98890647a2
commit
ed56c599b6
|
|
@ -226,7 +226,7 @@ public class VnfTemplateManagerImpl extends ManagerBase implements VnfTemplateMa
|
|||
}
|
||||
List<VnfTemplateNicVO> vnfNics = vnfTemplateNicDao.listByTemplateId(template.getId());
|
||||
for (VnfTemplateNicVO vnfNic : vnfNics) {
|
||||
if (vnfNic.isRequired() && !vmNetworkMap.containsKey(vnfNic.getDeviceId())) {
|
||||
if (vnfNic.isRequired() && vmNetworkMap.size() <= vnfNic.getDeviceId()) {
|
||||
throw new InvalidParameterValueException("VNF nic is required but not found: " + vnfNic);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue