summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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())) {