aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Freeman <bf1936@att.com>2019-04-22 14:34:02 -0500
committerBrian Freeman <bf1936@att.com>2019-04-22 14:34:25 -0500
commitea834f7d10e7d31452d2f68a7fe632b8104f4872 (patch)
treef1b4de1e8433e3ae495a03cae4a5442bee087aed
parentf38a834de639e11e62817a878fb6ca413d13f0b2 (diff)
Fix instantiate preload
Issue-ID: INT-1039 Change-Id: I18740fdd67a5c3ee3fb29f8140bc7c80f85994dd Signed-off-by: Brian Freeman <bf1936@att.com>
-rw-r--r--robot/resources/sdngc_interface.robot3
1 files changed, 3 insertions, 0 deletions
diff --git a/robot/resources/sdngc_interface.robot b/robot/resources/sdngc_interface.robot
index faa95e25..f7b8f304 100644
--- a/robot/resources/sdngc_interface.robot
+++ b/robot/resources/sdngc_interface.robot
@@ -93,6 +93,9 @@ Preload Vnf
\ ... ELSE IF "${generic_vnf_name}".endswith('1') Get From Mapping With Index ${templates} ${vf_module} 1
\ ... ELSE IF "${generic_vnf_name}".endswith('2') Get From Mapping With Index ${templates} ${vf_module} 2
\ ... ELSE Get From Mapping ${templates} ${vf_module}
+ # skip this iteration if no template
+ \ ${test_dict_length} = Get Length ${dict}
+ \ Continue For Loop If ${test_dict_length} == 0
\ ${filename}= Get From Dictionary ${dict} template
\ ${base_vf_module_type}= Set Variable If '${dict['isBase']}' == 'true' ${vf_module_type} ${base_vf_module_type}
\ ${closedloop_vf_module}= Set Variable If '${dict['isBase']}' == 'false' ${vf_module} ${closedloop_vf_module}