You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have confirmed this issue on version 1.4.4. It previously worked on 1.4.3.
The following example task:
- name: Install the web app in development mode
pip: executable=pip-3.3 name=/path/to/code extra_args='-e'
Raises the following error:
Traceback (most recent call last):
File "/home/vagrant/.ansible/tmp/ansible-1389641998.4-98108193785888/pip", line 1381, in <module>
main()
File "/home/vagrant/.ansible/tmp/ansible-1389641998.4-98108193785888/pip", line 325, in main
cmd_opts = _get_cmd_options(module, cmd)
File "/home/vagrant/.ansible/tmp/ansible-1389641998.4-98108193785888/pip", line 152, in _get_cmd_options
module.fail_json(msg="Could not get --help output from %s" % virtualenv)
NameError: global name 'virtualenv' is not defined
I believe the root problem is that _get_cmd_optionsfunction is being called with a cmd argument of pip3.3 -e. This results in the value of thiscmd being pip3.3 -e --help when ran (on line 149) which fails.
I broke backwards compat with the addition to define when a password
should be updated. It was requiring that a password value be passed when
deleting a user, which seems silly.
This moves the argument logic out of the argument spec and into when it
would be needed, when state is present.
I have confirmed this issue on version 1.4.4. It previously worked on 1.4.3.
The following example task:
Raises the following error:
I believe the root problem is that
_get_cmd_options
function is being called with acmd
argument ofpip3.3 -e
. This results in the value ofthiscmd
beingpip3.3 -e --help
when ran (on line 149) which fails.The
-e
gets thrown onto thecmd
on this line.The text was updated successfully, but these errors were encountered: