From 9ac1c0f6c2324ae3c83e444a33d1f6a1dd46b5d7 Mon Sep 17 00:00:00 2001 From: Chris Meyers Date: Thu, 25 Jan 2024 14:18:24 -0500 Subject: [PATCH] Specify docker network when multiple networks * We introduced multi networks to our docker env. The code this replaces would return both networks' ip addresses concatinated i.e. '192.168.2.1192.168.2.3'. --- .github/actions/run_awx_devel/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/run_awx_devel/action.yml b/.github/actions/run_awx_devel/action.yml index 79c795c85d..57dcb54b42 100644 --- a/.github/actions/run_awx_devel/action.yml +++ b/.github/actions/run_awx_devel/action.yml @@ -71,7 +71,7 @@ runs: id: data shell: bash run: | - AWX_IP=$(docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' tools_awx_1) + AWX_IP=$(docker inspect -f '{{.NetworkSettings.Networks._sources_awx.IPAddress}}' tools_awx_1) ADMIN_TOKEN=$(docker exec -i tools_awx_1 awx-manage create_oauth2_token --user admin) echo "ip=$AWX_IP" >> $GITHUB_OUTPUT echo "admin_token=$ADMIN_TOKEN" >> $GITHUB_OUTPUT