summaryrefslogtreecommitdiffstats
path: root/netconfsimulator/src
diff options
context:
space:
mode:
authorAleksandra Maciaga <aleksandra.maciaga@nokia.com>2020-04-21 11:28:53 +0200
committerAleksandra Maciaga <aleksandra.maciaga@nokia.com>2020-04-21 11:32:12 +0200
commitf633fb4f7954dd6fc79a541472ff1d0fd3b349cb (patch)
tree0065f5661153ab7a2de7f9c6770a63bad52ca489 /netconfsimulator/src
parenteac5ff61f954cdbda1258de46a1ddca381c76325 (diff)
Fix sonar issue NetconfConfigurationService
Issue-ID: INT-1517 Signed-off-by: Aleksandra Maciaga <aleksandra.maciaga@nokia.com> Change-Id: I08192bfd07455f7aa929060840d7e63d9a00f156
Diffstat (limited to 'netconfsimulator/src')
-rw-r--r--netconfsimulator/src/main/java/org/onap/netconfsimulator/netconfcore/configuration/NetconfConfigurationService.java4
1 files changed, 2 insertions, 2 deletions
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;
}