diff --git a/tests/tasks/get_modules_and_utils_paths.yml b/tests/tasks/get_modules_and_utils_paths.yml index 2090b7e..c71f169 100644 --- a/tests/tasks/get_modules_and_utils_paths.yml +++ b/tests/tasks/get_modules_and_utils_paths.yml @@ -50,6 +50,7 @@ fi done for dir in {{ collection_paths | join(" ") }}; do + if [ ! -d "$dir" ]; then continue; fi cd "$dir" for subdir in ansible_collections/*/*/plugins/modules; do if [ -f "$subdir/network_connections.py" ]; then @@ -75,6 +76,7 @@ fi done for dir in {{ collection_paths | join(" ") }}; do + if [ ! -d "$dir" ]; then continue; fi cd "$dir" for subdir in ansible_collections/*/*/plugins/module_utils; do if [ -d "$subdir/network_lsr" ]; then