If a policy type can't be preloaded because it doesn't exist, log and
continue.
Issue-ID: POLICY-2487
Signed-off-by: Chris Ramstad <cramstad@ciena.com>
Change-Id: I2a26e660d7337b2db153491a6bb3373b1470cbee
for (String entity : entities) {
String entityAsStringYaml = ResourceUtils.getResourceAsString(entity);
if (entityAsStringYaml == null) {
- throw new PolicyApiException("Preloading entity cannot be found: " + entity);
+ LOGGER.warn("Preloading entity cannot be found: " + entity);
+ continue;
}
ToscaServiceTemplate singleEntity =
protected interface FunctionWithEx<T, R> {
public R apply(T value) throws PfModelException;
}
-}
\ No newline at end of file
+}