Skip to content

Commit 15651b9

Browse files
committed
Fix limeWaitForAgentStatus --field handling
1 parent 8fc3221 commit 15651b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Library/test-helpers/lib.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1541,11 +1541,11 @@ Returns 0 when the start was successful, 1 otherwise.
15411541

15421542
limeWaitForAgentStatus() {
15431543
local FIELD='operational_state'
1544+
[ "$1" == "--field" ] && FIELD="$2" && shift 2
15441545
local TIMEOUT=${limeTIMEOUT}
15451546
local UUID="$1"
15461547
local VALUE="$2"
15471548
local OUTPUT=`mktemp`
1548-
[ "$1" == "--field" ] && FIELD="$2" && shift 2
15491549
[ -z "$1" ] && return 3
15501550
[ -z "$2" ] && return 4
15511551
[ -n "$3" ] && TIMEOUT=$3

0 commit comments

Comments
 (0)