Issue-ID: CLI-100
Change-Id: I9ff493c0f83f9b63d6e2f647197f32b76d475ba4
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
public String printYaml() throws OnapCommandOutputPrintingFailed {
try {
return new YAMLMapper().writeValueAsString(new ObjectMapper().readTree(this.printJson()));
- } catch (JsonProcessingException e) {
- throw new OnapCommandOutputPrintingFailed(e); // NOSONAR
- } catch (IOException e) {
+ } catch (IOException e) {
throw new OnapCommandOutputPrintingFailed(e); // NOSONAR
}
}