Fix instantiate preload 86/85986/1
authorBrian Freeman <bf1936@att.com>
Mon, 22 Apr 2019 19:34:02 +0000 (14:34 -0500)
committerBrian Freeman <bf1936@att.com>
Mon, 22 Apr 2019 19:34:25 +0000 (14:34 -0500)
Issue-ID: INT-1039
Change-Id: I18740fdd67a5c3ee3fb29f8140bc7c80f85994dd
Signed-off-by: Brian Freeman <bf1936@att.com>
robot/resources/sdngc_interface.robot

index faa95e2..f7b8f30 100644 (file)
@@ -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}