In django module if no virtualenv is specified, don't choke

This commit is contained in:
Michael DeHaan 2013-02-28 16:03:23 -05:00
parent 1e5d5fc263
commit b5ad1ce768

View file

@ -109,7 +109,10 @@ def _fail(module, cmd, out, err, **kwargs):
def _ensure_virtualenv(module): def _ensure_virtualenv(module):
venv_param = module.params['virtualenv'] venv_param = module.params['virtualenv']
if venv_param is None:
return
virtualenv = module.get_bin_path('virtualenv', True) virtualenv = module.get_bin_path('virtualenv', True)