unable to terminate netconf session due to process ID is truncated
[integration/test.git] / csit / suites / netconf / MDSAL / northbound.robot
index 5ebaecd01d8e7fb5b72bfbdb8c0ccb1c2a5d2f3a..ec7343616dec480927e8a45b6142f36a02a32f61 100644 (file)
@@ -356,7 +356,7 @@ Reopen_ODL_Netconf_Connection
     SSHLibrary.Write    sshpass -p ${ssh_password} ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ${ssh_user}\@127.0.0.1 -p ${ssh_port} -s netconf
     ${hello}=    SSHLibrary.Read_Until    ${ODL_NETCONF_PROMPT}
     SSHLibrary.Switch_Connection    ${ssh_control}
-    ${pid}=    SSHLibrary.Execute_Command    ps -A | grep sshpass | cut -b 1-6
+    ${pid}=    SSHLibrary.Execute_Command    ps -A | grep sshpass | awk '{print $1}'
     BuiltIn.Set_Suite_Variable    ${ssh_netconf_pid}    ${pid}
     SSHLibrary.Switch_Connection    ${ssh_netconf}
     [Return]    ${hello}