summaryrefslogtreecommitdiffstats
path: root/cps-service
diff options
context:
space:
mode:
authorToine Siebelink <toine.siebelink@est.tech>2023-07-20 13:27:18 +0000
committerGerrit Code Review <gerrit@onap.org>2023-07-20 13:27:18 +0000
commit0ba8fbf7aa8d30faad72ca20bfab142bdc1816da (patch)
treeaf4318ff4c7be1e2ebb81f1e774299578fdd31b3 /cps-service
parent00113a7e3a3c9ad7ea44258097d82431320f7605 (diff)
parent74a47154f3bce495d9f58a300a860d750ae309f1 (diff)
Merge "Apostrophe handling in CpsPathParser"
Diffstat (limited to 'cps-service')
-rw-r--r--cps-service/src/main/java/org/onap/cps/utils/YangUtils.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/cps-service/src/main/java/org/onap/cps/utils/YangUtils.java b/cps-service/src/main/java/org/onap/cps/utils/YangUtils.java
index 7da4024156..f00f9442ce 100644
--- a/cps-service/src/main/java/org/onap/cps/utils/YangUtils.java
+++ b/cps-service/src/main/java/org/onap/cps/utils/YangUtils.java
@@ -253,7 +253,7 @@ public class YangUtils {
final List<String> keyAttributes = nodeIdentifier.entrySet().stream().map(
entry -> {
final String name = entry.getKey().getLocalName();
- final String value = String.valueOf(entry.getValue()).replace("'", "\\'");
+ final String value = String.valueOf(entry.getValue()).replace("'", "''");
return String.format("@%s='%s'", name, value);
}
).collect(Collectors.toList());