From eef5ea350f5d27f443798aa226f94866f3e80d38 Mon Sep 17 00:00:00 2001 From: Till Maas Date: Tue, 16 Apr 2019 15:09:41 +0200 Subject: [PATCH] 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 --- tests/tests_unit.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/tests_unit.yml b/tests/tests_unit.yml index 48e478b..e5bd67c 100644 --- a/tests/tests_unit.yml +++ b/tests/tests_unit.yml @@ -26,6 +26,7 @@ - copy: src: "{{ item }}" dest: /tmp/test-unit-1/ + local_follow: false loop: - ../library/network_connections.py - test_network_connections.py