mirror of
https://github.com/linux-system-roles/network.git
synced 2026-01-23 10:25:28 +00:00
tests: Do not follow local symlinks
A symlink like ansible -> ../.. in module_utils/network_lsr breaks the copy task with a strange error message: An exception occurred during task execution. To see the full traceback, use -vvv. The error was: FileNotFoundError: [Errno 2] No such file or directory: '' Avoiding following symlinks helps here. The symlink makes it easier to import the files since the import paths include ansible as a component: from ansible.module_utils.network_lsr.utils import Util
This commit is contained in:
parent
00a81165e8
commit
eef5ea350f
1 changed files with 1 additions and 0 deletions
|
|
@ -26,6 +26,7 @@
|
|||
- copy:
|
||||
src: "{{ item }}"
|
||||
dest: /tmp/test-unit-1/
|
||||
local_follow: false
|
||||
loop:
|
||||
- ../library/network_connections.py
|
||||
- test_network_connections.py
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue