From 074e4ad47f9589954fe1284cce80f9018abc9886 Mon Sep 17 00:00:00 2001 From: Matt Martz Date: Mon, 18 May 2015 15:31:27 -0500 Subject: [PATCH] rstrip modules path, to prevent some strange scenario with .git --- ansible_testing/modules.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ansible_testing/modules.py b/ansible_testing/modules.py index cca54d2632..3c35731931 100644 --- a/ansible_testing/modules.py +++ b/ansible_testing/modules.py @@ -249,6 +249,8 @@ def main(): action='store_true') args = parser.parse_args() + args.modules = args.modules.rstrip('/') + for root, dirs, files in os.walk(args.modules): basedir = root[len(args.modules)+1:].split('/', 1)[0] if basedir in BLACKLIST_DIRS: