mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
another fix for None in name
This commit is contained in:
@@ -368,10 +368,11 @@ def main():
|
|||||||
# Automatically apply -e option to extra_args when source is a VCS url. VCS
|
# Automatically apply -e option to extra_args when source is a VCS url. VCS
|
||||||
# includes those beginning with svn+, git+, hg+ or bzr+
|
# includes those beginning with svn+, git+, hg+ or bzr+
|
||||||
has_vcs = False
|
has_vcs = False
|
||||||
for pkg in name:
|
if pkg:
|
||||||
if bool(pkg and re.match(r'(svn|git|hg|bzr)\+', pkg)):
|
for pkg in name:
|
||||||
has_vcs = True
|
if bool(pkg and re.match(r'(svn|git|hg|bzr)\+', pkg)):
|
||||||
break
|
has_vcs = True
|
||||||
|
break
|
||||||
|
|
||||||
if has_vcs and module.params['editable']:
|
if has_vcs and module.params['editable']:
|
||||||
args_list = [] # used if extra_args is not used at all
|
args_list = [] # used if extra_args is not used at all
|
||||||
|
|||||||
Reference in New Issue
Block a user