From f633fb4f7954dd6fc79a541472ff1d0fd3b349cb Mon Sep 17 00:00:00 2001 From: Aleksandra Maciaga Date: Tue, 21 Apr 2020 11:28:53 +0200 Subject: Fix sonar issue NetconfConfigurationService Issue-ID: INT-1517 Signed-off-by: Aleksandra Maciaga Change-Id: I08192bfd07455f7aa929060840d7e63d9a00f156 --- .../netconfcore/configuration/NetconfConfigurationService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'netconfsimulator/src/main/java') diff --git a/netconfsimulator/src/main/java/org/onap/netconfsimulator/netconfcore/configuration/NetconfConfigurationService.java b/netconfsimulator/src/main/java/org/onap/netconfsimulator/netconfcore/configuration/NetconfConfigurationService.java index 248aec4..8f6f0ba 100644 --- a/netconfsimulator/src/main/java/org/onap/netconfsimulator/netconfcore/configuration/NetconfConfigurationService.java +++ b/netconfsimulator/src/main/java/org/onap/netconfsimulator/netconfcore/configuration/NetconfConfigurationService.java @@ -64,8 +64,8 @@ public class NetconfConfigurationService { public String editCurrentConfiguration(MultipartFile newConfiguration) throws IOException, JNCException { Element configurationElement = convertMultipartToXmlElement(newConfiguration); configurationEditor.editConfig(configurationElement); - - LOGGER.debug("Loading new configuration: \n{}", configurationElement.toXMLString()); + String configurationXmlString = configurationElement.toXMLString(); + LOGGER.debug("Loading new configuration: \n{}", configurationXmlString); return CONFIGURATION_HAS_BEEN_ACTIVATED; } -- cgit 1.2.3-korg