Fix sed command to set tell-based setting 77/56677/1
authorPeter Gubka <pgubka@cisco.com>
Mon, 8 May 2017 15:59:20 +0000 (17:59 +0200)
committerPeter Gubka <pgubka@cisco.com>
Mon, 8 May 2017 16:01:33 +0000 (18:01 +0200)
Change-Id: I7ba538ce1ac07d8f6cf11f5914e0ec4565cca1ea
Signed-off-by: Peter Gubka <pgubka@cisco.com>
csit/suites/controller/dom_data_broker/restart_odl_with_tell_based_false.robot
csit/suites/controller/dom_data_broker/restart_odl_with_tell_based_true.robot

index fc97cb0e78c88e0e62de49060833164d7870eafd..19f391151c2c80045965f63cc9c057434bc18ca3 100644 (file)
@@ -27,7 +27,7 @@ Kill_All_Members
 
 Unset_Tell_Based_Protocol_Usage
     [Documentation]    Comment out the flag usage in config file. Also clean most data except data/log/.
-    ClusterManagement.Check_Bash_Command_On_List_Or_All    sed -ie "s/use-tell-based-protocol=/#use-tell-based-protocol=/g" ${DATASTORE_CFG}
+    ClusterManagement.Check_Bash_Command_On_List_Or_All    sed -ie "s/^use-tell-based-protocol=/#use-tell-based-protocol=/g" ${DATASTORE_CFG}
     ClusterManagement.Check_Bash_Command_On_List_Or_All    cat ${DATASTORE_CFG}
     ClusterManagement.Clean_Directories_On_List_Or_All    tmp_dir=/tmp
 
index 8c037468f0302e336d5d1f0dc6c2f7d3c5eb5f6f..9a5bb932596107aa64d3e6b2246079ebd2d89656 100644 (file)
@@ -27,7 +27,7 @@ Kill_All_Members
 
 Set_Tell_Based_Protocol_Usage
     [Documentation]    Un-comment the flag usage in config file. Also clean most data except data/log/.
-    ClusterManagement.Check_Bash_Command_On_List_Or_All    sed -ie "s/#use-tell-based-protocol=/use-tell-based-protocol=/g" ${DATASTORE_CFG}
+    ClusterManagement.Check_Bash_Command_On_List_Or_All    sed -ie "s/^#use-tell-based-protocol=/use-tell-based-protocol=/g" ${DATASTORE_CFG}
     ClusterManagement.Check_Bash_Command_On_List_Or_All    cat ${DATASTORE_CFG}
     ClusterManagement.Clean_Directories_On_List_Or_All    tmp_dir=/tmp