summaryrefslogtreecommitdiff
path: root/lib/ansible/parsing/mod_args.py
Commit message (Collapse)AuthorAgeFilesLines
* ansible/parsing: PEP8 compliancy (#24701)Dag Wieers2017-05-181-14/+8
| | | - Make PEP8 compliant
* Update module_utils.six to latest (#22855)Toshio Kuratomi2017-03-231-1/+3
| | | | | | | | * Update module_utils.six to latest We've been held back on the version of six we could use on the module side to 1.4.x because of python-2.4 compatibility. Now that our minimum is Python-2.6, we can update to the latest version of six in module_utils and get rid of the second copy in lib/ansible/compat.
* E501 fixes (#22879)Matt Martz2017-03-221-3/+7
|
* more cleanup from net_command module that is abandoned for 2.3 (#21497)Peter Sprygada2017-02-151-3/+2
|
* improve error message on conflicting actions. Fixes #21057 (#21059)Daniel Brachmann2017-02-061-1/+1
| | | | | | | | * this fixes #21057 outputs the conflicting action statements. * reverting to old % syntax for python 2.6 compatibility
* Make ModuleArgsParser more understandable (#13974)Will Thames2017-01-121-22/+21
| | | | | | | | | | | | | | | | | | | | | * Make ModuleArgsParser more understandable Both comments and method names for handling new/old style parameters are switched around Made comments and method names reflect actual code paths taken. * Further improve mod_args.py comments Ensure output formats are correctly documented, remove some of the 'opinion' about which formats are valid, and try and clarify the situations under which certain code paths are hit. Stop talking about the YAML command-type form as 'extra gross' when it's the documented example form for command etc.!
* (docs) Remove/update mentions of `git submodule` in docs and error me… ↵Ryan Brown2017-01-091-1/+1
| | | | | | | | (#19941) * (docs) Remove/update mentions of `git submodule` in docs and error messages. * Remove parenthetical per @dharmabumstead
* adds new module net_command for network devices (#19468)Peter Sprygada2016-12-191-2/+3
| | | | | * new module net_command for sending a command to a network device * adds unit test cases for module * only works with connection=network_cli
* During initial argument evaluation, cast args to string. (#17595)jctanner2016-09-151-0/+2
| | | | | | | Later in the stack, further code will check and inform the user that var names must start with a letter or underscore, so this fix only allows us to get to that previously existing policy. Fixes #16008
* win_shell/win_command changes + tests (#17557)Matt Davis2016-09-151-3/+5
|
* fix action parsing to avoid conflicts aginBrian Coca2016-08-261-2/+4
|
* include_role (role revamp implementation) (#17232)Brian Coca2016-08-261-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * attempt #11 to role_include * fixes from jimi-c * do not override load_data, move all to load * removed debugging * implemented tasks_from parameter, must break cache * fixed issue with cache and tasks_from * make resolution of from_tasks prioritize literal * avoid role dependency dedupe when include_role * fixed role deps and handlers are now loaded * simplified code, enabled k=v parsing used example from jimi-c * load role defaults for task when include_role * fixed issue with from_Tasks overriding all subdirs * corrected priority order of main candidates * made tasks_from a more generic interface to roles * fix block inheritance and handler order * allow vars: clause into included role * pull vars already processed vs from raw data * fix from jimi-c blocks i broke * added back append for dynamic includes * only allow for basename in from parameter * fix for docs when no default * fixed notes * added include_role to changelog
* Remove a useless section, only act on 'shell' (#16205)Dag Wieers2016-08-121-5/+0
|
* Added more info to the no action detected errorJonathan Davila2016-02-081-1/+1
| | | | Error fix
* Allow module args as k=v pairs when using the module: option with local_actionJames Cammarata2016-01-181-2/+5
| | | | | | This task format is valid in 1.x, but was broken in 2.x: - local_action: module: shell echo "hello world"
* All variables in complex args againJames Cammarata2015-12-161-1/+10
| | | | | | | Also updates the CHANGELOG to note the slight change, where bare variables in args are no longer allowed to be bare variables Fixes #13518
* Put in trap for args being NoneMonty Taylor2015-11-281-1/+1
| | | | | _normalize_old_style_args can return None. If it does, the loop "for args in args" blows up.
* More restrictive test against variable name to allow setting variable ↵Yannig Perré2015-11-281-1/+1
| | | | starting with _.
* Switch parameters validation after parsing in order to be more consistent ↵Yannig Perré2015-11-261-1/+8
| | | | between old and new style.
* Cleaning up FIXMEsJames Cammarata2015-10-221-1/+0
|
* Bundle a new version of python-six for compatibility along with some code to ↵six-compatToshio Kuratomi2015-10-161-1/+1
| | | | make it easy for distributions to override the bunndled copy if they have a new enough version.
* Revert "Track local_action internally to prevent it from being overridden"Brian Coca2015-10-091-1/+2
| | | | This reverts commit 49ca0eb797ae88da17d2b036985dcf28e4a301b0.
* removed changes to make local action equate connection=local and brought it ↵Brian Coca2015-10-091-10/+6
| | | | back to equate delegate_to=localhost
* Detect if core modules aren't installed and warn if that is the casewarn-if-core-modules-not-presentToshio Kuratomi2015-09-211-1/+8
| | | | Fixes #11206
* Track local_action internally to prevent it from being overriddenJames Cammarata2015-09-141-2/+6
| | | | Fixes #12053
* Don't split args out unless we're parsing module args using the new styleJames Cammarata2015-09-121-7/+6
| | | | Fixes #12331
* changed local_action to alias to connection=local vs delegate_to=localhostBrian Coca2015-08-181-6/+5
| | | | fixes #11998, but still leaves issue of delegate_to: localhost not working
* Make sure raw doesn't eat key=value arguments.Chris Church2015-08-021-2/+2
|
* Allowing `args: "{{some_var}}"` for task params againJames Cammarata2015-07-241-1/+7
| | | | | | | | This is unsafe and we debated re-adding it to the v2/2.0 codebase, however it is a common-enough feature that we will simply mark it as deprecated for now and remove it at some point in the future. Fixes #11718
* Fixing module arg parsing splitting when action is a variableJames Cammarata2015-07-151-8/+4
| | | | Fixes #11122
* fixed frozen set, missing iterableBrian Coca2015-06-021-2/+2
|
* moved RAW var to class and as a frozensetBrian Coca2015-06-021-13/+14
|
* Revert "Adding raw module to list of modules allowing raw params"Brian Coca2015-06-021-1/+0
| | | | | This reverts commit bc041ffea07ce812587ee23ec1b6511a08bef999. same fix x2 does not fix it 'more'
* Adding raw module to list of modules allowing raw paramsJames Cammarata2015-06-021-0/+1
| | | | Fixes #11119
* added raw to 'raw' modulesBrian Coca2015-06-021-0/+1
|
* Fixing bugs related to parsing and fixing up parsing integration tests (v2)James Cammarata2015-05-131-4/+14
|
* Making the switch to v2James Cammarata2015-05-031-0/+278