diff options
author | Tait,Trevor(rt0435) <rtait@amdocs.com> | 2019-01-08 12:34:49 -0500 |
---|---|---|
committer | Tait,Trevor(rt0435) <rtait@amdocs.com> | 2019-01-08 13:59:49 -0500 |
commit | b98119f75babfb7957cc5a00fcbf710bcf36dea1 (patch) | |
tree | 51cc8fd6a9d633fb626b484b3daf82255382fc85 /src/main | |
parent | 01e6267770e76f17fbb7f7b6d8cc2817a5e7604e (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/main')
-rw-r--r-- | src/main/java/org/onap/pomba/contextbuilder/sdnc/util/RestUtil.java | 7 |
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())) { |