From a16ddb57c17da4e4fa45cfb64cccd96e144e2a04 Mon Sep 17 00:00:00 2001 From: Daniel Hokka Zakrisson Date: Tue, 22 Jan 2013 15:42:49 +0100 Subject: [PATCH] Default module search path is included already Adding it to runner's module_path makes it override local modules. --- lib/ansible/utils/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/utils/__init__.py b/lib/ansible/utils/__init__.py index b498e7772a7..c79a1a0fa40 100644 --- a/lib/ansible/utils/__init__.py +++ b/lib/ansible/utils/__init__.py @@ -391,7 +391,7 @@ def base_parser(constants=C, usage="", output_opts=False, runas_opts=False, help='ask for sudo password') parser.add_option('-M', '--module-path', dest='module_path', help="specify path(s) to module library (default=%s)" % constants.DEFAULT_MODULE_PATH, - default=constants.DEFAULT_MODULE_PATH) + default=None) if subset_opts: parser.add_option('-l', '--limit', default=constants.DEFAULT_SUBSET, dest='subset',