fixing compare condition for more complicated values
[integration/test.git] / csit / libraries / Utils.robot
index 712f936e87f5899b7088b7ba35abe93ef8936b89..e653ae431e303e60eaf732de71aacfb32da4201e 100644 (file)
@@ -399,7 +399,7 @@ Get Index From List Of Dictionaries
     ${index}=    Set Variable    -1
     : FOR    ${i}    IN RANGE    ${length}
     \    ${dictionary}=    Get From List    ${dictionary_list}    ${i}
-    \    Run Keyword If    '&{dictionary}[${key}]' == '${value}'    Set Test Variable    ${index}    ${i}
+    \    Run Keyword If    """&{dictionary}[${key}]""" == """${value}"""    Set Test Variable    ${index}    ${i}
     [Return]    ${index}
 
 Check Item Occurrence