-
Notifications
You must be signed in to change notification settings - Fork 23.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
get_url 'url' parameter should be marked required #6857
Comments
I see 2 things here:
|
Thanks, have updated title to reflect pilot error. |
@sivel, src is accepted because it supports the common arguments of the file module, of which this is one. This seems ridiculously easy to fix just by adding "url" to the argument_spec as a required argument. |
Just as a heads up, and I think making |
I hit an error that resulted in
I believe that this constitutes some bad error handling, will look into filing an issue. |
Issue Type:
Bug Report
Ansible Version:
:$ ansible --version
Environment:
:$ vagrant ssh mslave1 -c 'cat /etc/redhat-release; python --version'
Summary:
I fat finger get_url to have a src= field rather than a url= field.
Rather than a usage error, i got a python stack trace (see below).
Steps To Reproduce:
:$ cat bug.hosts
:$ cat bug.yml
Expected Results:
Some error along the lines of : get_url is missing a required field "url".
Actual Results:
:$ ansible-playbook -i bug.hosts -vv bug.yml
:$
The text was updated successfully, but these errors were encountered: