From 506e6ff2e2bd7301f4b30a8653aba689dc12f4e3 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Tue, 5 Jul 2016 15:33:09 -0400 Subject: [PATCH] another fix for None in name --- lib/ansible/modules/packaging/language/pip.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/ansible/modules/packaging/language/pip.py b/lib/ansible/modules/packaging/language/pip.py index 2405f978ac..a230212b51 100755 --- a/lib/ansible/modules/packaging/language/pip.py +++ b/lib/ansible/modules/packaging/language/pip.py @@ -368,10 +368,11 @@ def main(): # Automatically apply -e option to extra_args when source is a VCS url. VCS # includes those beginning with svn+, git+, hg+ or bzr+ has_vcs = False - for pkg in name: - if bool(pkg and re.match(r'(svn|git|hg|bzr)\+', pkg)): - has_vcs = True - break + if pkg: + for pkg in name: + if bool(pkg and re.match(r'(svn|git|hg|bzr)\+', pkg)): + has_vcs = True + break if has_vcs and module.params['editable']: args_list = [] # used if extra_args is not used at all