Issue-ID: CLI-92
Change-Id: If5ce9499763fdec5980c4cdd1839d5ef31ccdd49
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
for (String value: entry.getValue()) {
try {
value = replaceLineFromInputParameters(value, params);
- } catch(OnapCommandResultEmpty e) {
- // pass // NOSONAR
+ } catch(OnapCommandResultEmpty e) { // NOSONAR
+ // pass
}
resultsProcessed.get(key).add(value);
}
this.exitSuccessfully();
generateSmapleYaml(cmd);
+ } catch (OnapCommandWarning w) {
+ this.print(cmd.getResult().getDebugInfo());
+ this.exitSuccessfully();
} catch (Exception e) {
+ this.print(e);
this.print(cmd.getResult().getDebugInfo());
- if (e instanceof OnapCommandWarning) {
- this.exitSuccessfully();
- } else {
- this.print(e);
- this.exitFailure();
- }
+ this.exitFailure();
}
}
}