From aa475d337a7cce747a35c3106b0e65aea8bd7d5b Mon Sep 17 00:00:00 2001 From: Rhett Sutphin Date: Fri, 1 Nov 2013 12:29:31 -0500 Subject: [PATCH] Document env dependency for test-module. You need to source hacking/env-setup before running hacking/test-module; otherwise you get an error like this: ImportError: No module named ansible.utils --- docsite/rst/developing_modules.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docsite/rst/developing_modules.rst b/docsite/rst/developing_modules.rst index 4635fe7a7f0..5f9037f61e1 100644 --- a/docsite/rst/developing_modules.rst +++ b/docsite/rst/developing_modules.rst @@ -61,6 +61,7 @@ Testing Modules There's a useful test script in the source checkout for ansible:: git clone git@github.com:ansible/ansible.git + source ansible/hacking/env-setup chmod +x ansible/hacking/test-module Let's run the script you just wrote with that::