Skip to content

Commit 61176aa

Browse files
authored
NO-ISSUE: Fix issues in automate-no-registry-agent-tui.sh (#1782)
source agent/common.sh in e2e/agent-tui/utils.sh so that it can find the getRendezvousIP function. This was missed in PR#1771. The $VAR and $ip variables in pressKeys was not defined. Renamed them to $node and $text as that appears to be what was originally intended.
1 parent 955417c commit 61176aa

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

agent/e2e/agent-tui/automate-no-registry-agent-tui.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/../../../" && pwd )"
44
source $SCRIPTDIR/common.sh
5+
source $SCRIPTDIR/agent/common.sh
56
source $SCRIPTDIR/agent/e2e/agent-tui/utils.sh
67

78
set +x

agent/e2e/agent-tui/utils.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ function pressKeys(){
6666
local text=$2
6767
local node=$3
6868

69-
if [[ -n "$VAR" ]]; then
70-
echo "$msg $ip on node $node"
69+
if [[ -n "$node" ]]; then
70+
echo "$msg $text on node $node"
7171
else
7272
echo $msg
7373
fi

0 commit comments

Comments
 (0)