aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorManzon, Inna (im453s) <im453s@intl.att.com>2018-09-17 17:50:41 +0300
committerManzon, Inna (im453s) <im453s@intl.att.com>2018-09-17 17:52:37 +0300
commit6fefab672f8ee763b561b0f67681e4f5b09418bc (patch)
tree42e64d951efb4daed2cb29cf4a56bffa9251cdd8 /src
parent3aa7e83c4c95e3aaac3e78a4a190c3aa5717069f (diff)
Resolve get_input for list change
Change-Id: I53c13b22f74f857395f6f9c40801b0e927562bf5 Issue-ID: SDC-1769 Signed-off-by: Manzon, Inna (im453s) <im453s@intl.att.com>
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/onap/sdc/toscaparser/api/functions/GetInput.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/org/onap/sdc/toscaparser/api/functions/GetInput.java b/src/main/java/org/onap/sdc/toscaparser/api/functions/GetInput.java
index f2df667..7897495 100644
--- a/src/main/java/org/onap/sdc/toscaparser/api/functions/GetInput.java
+++ b/src/main/java/org/onap/sdc/toscaparser/api/functions/GetInput.java
@@ -56,11 +56,12 @@ public class GetInput extends Function {
if(args.size() == 2 && args.get(1) instanceof Integer && ((ArrayList) value).size()> (Integer)args.get(1)){
return ((ArrayList) value).get((Integer) args.get(1));
}
+ /* commented out for network cloud (SDNC)
else{
ThreadLocalsHolder.getCollector().appendValidationIssue(new JToscaValidationIssue("JE273",String.format(
"GetInputError: cannot resolve input name \"%s\", the expected structure is an argument with a name of input type list and a second argument with an index in the list", args.get(0))));
return null;
- }
+ }*/
}
return value;
}