Skip to content

Commit

Permalink
PROJECT-MGMT-4115: add support for cicd with RHEL9 - missing variable…
Browse files Browse the repository at this point in the history
… delimiter

Signed-off-by: Paul Bastide <[email protected]>
  • Loading branch information
prb112 committed Apr 17, 2024
1 parent 1151021 commit 8eca6bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/5_worker/worker.tf
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ else
IFACES=$(nmcli device show 2>&1| grep GENERAL.DEVICE | grep -v eth1 | grep -v lo | awk '{print $NF}')
fi
for IFACE in $(echo ${IFACES})
for IFACE in $(echo $${IFACES})
do
IP_ADDR="$(nmcli device show $${IFACE} 2>&1 | grep IP4.ADDRESS | sed 's|/24||g' | awk '{print $NF}')"
if [ -n "$${IP_ADDR}" ]
Expand Down

0 comments on commit 8eca6bf

Please sign in to comment.