|
|
@ -410,11 +410,12 @@ def main():
|
|
|
|
out += out_pip
|
|
|
|
out += out_pip
|
|
|
|
err += err_pip
|
|
|
|
err += err_pip
|
|
|
|
|
|
|
|
|
|
|
|
for pkg in name:
|
|
|
|
if pkg:
|
|
|
|
is_present = _is_present(pkg, version, out.split())
|
|
|
|
for pkg in name:
|
|
|
|
if (state == 'present' and not is_present) or (state == 'absent' and is_present):
|
|
|
|
is_present = _is_present(pkg, version, out.split())
|
|
|
|
changed = True
|
|
|
|
if (state == 'present' and not is_present) or (state == 'absent' and is_present):
|
|
|
|
break
|
|
|
|
changed = True
|
|
|
|
|
|
|
|
break
|
|
|
|
module.exit_json(changed=changed, cmd=freeze_cmd, stdout=out, stderr=err)
|
|
|
|
module.exit_json(changed=changed, cmd=freeze_cmd, stdout=out, stderr=err)
|
|
|
|
|
|
|
|
|
|
|
|
if requirements or has_vcs:
|
|
|
|
if requirements or has_vcs:
|
|
|
|