Skip to content

Commit

Permalink
Fix: Invalid check for ansible in devcontainer (#3608)
Browse files Browse the repository at this point in the history
  • Loading branch information
ankudinov authored Feb 9, 2024
1 parent 47e377d commit 52daae6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions containers/dev/.devcontainer/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ CONTAINER_WORKSPACE=$(git rev-parse --show-toplevel)
CONTAINER_WSF_AVD_PATH=${CONTAINER_WORKSPACE}/ansible_collections/arista/avd

# only install collections if ansible binary is missing
if ! [ -z "$(command -v ansible)" ]; then
if [ -z "$(command -v ansible)" ]; then

# if collection is already mounted, it will be used to install the requirements
# there is no need to install AVD collection for this case as it's already mounted to the correct location
Expand Down Expand Up @@ -37,7 +37,7 @@ if ! [ -z "$(command -v ansible)" ]; then
fi

# if ansible installation failed for whatever reason - raise an error
if ! [ -z "$(command -v ansible)" ]; then
if [ -z "$(command -v ansible)" ]; then
echo "ERROR: Failed to install Ansible and collections." >&2
exit 1
fi
Expand Down

0 comments on commit 52daae6

Please sign in to comment.