Merge pull request #413 from JimPatterson/412_pip_check_venv

Correct check mode for pip in virtualenv.
This commit is contained in:
Brian Coca 2015-06-29 18:17:59 -04:00
commit a0d663bc65

View file

@ -320,7 +320,7 @@ def main():
this_dir = os.path.join(this_dir, chdir)
if module.check_mode:
if env or extra_args or requirements or state == 'latest' or not name:
if extra_args or requirements or state == 'latest' or not name:
module.exit_json(changed=True)
elif name.startswith('svn+') or name.startswith('git+') or \
name.startswith('hg+') or name.startswith('bzr+'):