mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
name was the issue, not pkg
This commit is contained in:
parent
d8e91f01b0
commit
ad996f162b
1 changed files with 3 additions and 3 deletions
|
@ -368,7 +368,7 @@ 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
|
||||
if pkg:
|
||||
if name:
|
||||
for pkg in name:
|
||||
if bool(pkg and re.match(r'(svn|git|hg|bzr)\+', pkg)):
|
||||
has_vcs = True
|
||||
|
@ -386,7 +386,7 @@ def main():
|
|||
if extra_args:
|
||||
cmd += ' %s' % extra_args
|
||||
|
||||
if pkg:
|
||||
if name:
|
||||
for pkg in name:
|
||||
cmd += ' %s' % _get_full_name(pkg, version)
|
||||
else:
|
||||
|
@ -410,7 +410,7 @@ def main():
|
|||
out += out_pip
|
||||
err += err_pip
|
||||
|
||||
if pkg:
|
||||
if name:
|
||||
for pkg in name:
|
||||
is_present = _is_present(pkg, version, out.split())
|
||||
if (state == 'present' and not is_present) or (state == 'absent' and is_present):
|
||||
|
|
Loading…
Reference in a new issue