fixing compare condition for more complicated values 24/45224/1
authorPeter Gubka <pgubka@cisco.com>
Tue, 6 Sep 2016 12:25:53 +0000 (14:25 +0200)
committerPeter Gubka <pgubka@cisco.com>
Tue, 6 Sep 2016 12:25:53 +0000 (14:25 +0200)
such as "/odl-general-entity:entity[odl-general-entity:name='Uri [_value=example-bgp-rib]-service-group']"

Change-Id: I94cafbb533c58780008bc4f69ee3a403029311bb
Signed-off-by: Peter Gubka <pgubka@cisco.com>
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