summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTait,Trevor(rt0435) <rtait@amdocs.com>2019-01-08 12:34:49 -0500
committerTait,Trevor(rt0435) <rtait@amdocs.com>2019-01-08 13:59:49 -0500
commitb98119f75babfb7957cc5a00fcbf710bcf36dea1 (patch)
tree51cc8fd6a9d633fb626b484b3daf82255382fc85 /src
parent01e6267770e76f17fbb7f7b6d8cc2817a5e7604e (diff)
lockedBoolean should be true/false
SDNC Context Builder passes lockedBoolean attribute with yes/no instead of the already established true/false Issue-ID: LOG-803 Change-Id: Ibf671f6f961f344aca1c5c68b6f7b56e038602f5 Signed-off-by: Tait,Trevor(rt0435) <rtait@amdocs.com>
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/onap/pomba/contextbuilder/sdnc/util/RestUtil.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/org/onap/pomba/contextbuilder/sdnc/util/RestUtil.java b/src/main/java/org/onap/pomba/contextbuilder/sdnc/util/RestUtil.java
index ad91155..3a6407a 100644
--- a/src/main/java/org/onap/pomba/contextbuilder/sdnc/util/RestUtil.java
+++ b/src/main/java/org/onap/pomba/contextbuilder/sdnc/util/RestUtil.java
@@ -255,7 +255,12 @@ public class RestUtil {
if ((null != vnfTopologyId.getInMaint()) && !(vnfTopologyId.getInMaint().isEmpty())) {
Attribute lockedBoolean = new Attribute();
lockedBoolean.setName(Name.lockedBoolean);
- lockedBoolean.setValue(vnfTopologyId.getInMaint());
+ if (vnfTopologyId.getInMaint().equalsIgnoreCase("yes")) {
+ lockedBoolean.setValue("true");
+ }
+ if (vnfTopologyId.getInMaint().equalsIgnoreCase("no")) {
+ lockedBoolean.setValue("false");
+ }
vf.addAttribute(lockedBoolean);
}
if ((null != vnfTopologyId.getProvStatus()) && !(vnfTopologyId.getProvStatus().isEmpty())) {