mirror of
https://github.com/linux-system-roles/network.git
synced 2026-07-27 04:50:49 +00:00
fix collection lookup problem
This fixes the following error: ``` /bin/sh: line 9: cd: /root/.ansible/collections: No such file or directory ``` The fix is to ensure the directory exists before attempting to `cd` to the directory. Signed-off-by: Rich Megginson <rmeggins@redhat.com>
This commit is contained in:
parent
e109d52e77
commit
209fa56d14
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue