ansible/lib/ansible
Kevin Breit a85750dc98 Meraki - Convert response keys to snake_case from camelCase (#53891)
* Initial proposal for new parameter option for response format
- output_version parameter dictates the response key case
- new is snake_case, old is camelCase
- If new, conversion is done at the end of module execution
- This is purely a proposal and not a final draft

* Add support for ANSIBLE_MERAKI_FORMAT env var
- If env var is set to 'camelcase' it will output camelcase
- Otherwise, will default to snakecase
- Added note to documentation fragment
- As of now, all module documentation needs to be updated

* Fix pep8 errors and remove output_version args

* Restructure check in exit_json so it actually works

* Add changelog fragment

* Change output_format to a parameter with env var fallback
- ANSIBLE_MERAKI_FORMAT is the valid env var
- Added documentation

* Convert to camel_dict_to_snake_dict() which is from Ansible
- Fixed integration tests

* Fix yaml lint error

* exit_json camel_case conversion handles no data
- exit_json would fail if data wasn't provided
- Updated 3 integration tests for new naming convention

* convert_camel_to_snake() handles lists and dicts
- The native Ansible method doesn't handle first level lists
- convert_camel_to_snake() acts simply as a wrapper for the method
- There maybe a situation where nested lists are a problem, must test
- Fixed integration tests in some modules

* A few integration test fixes

* Convert response documentation to snake case
2019-06-13 15:07:30 -04:00
..
cli Ansible galaxy role download should not have to perform aditionnal check against tar archive file extension #56616. (#56617) 2019-06-13 09:23:41 -05:00
compat Update bundled copy of selectors2 from 1.1.0 to 1.1.1 (#55457) 2019-04-23 11:52:24 -05:00
config AWS: _facts -> _info (part 4) (#57651) 2019-06-10 21:40:05 +02:00
errors Catch sshpass authentication errors and don't retry multiple times to prevent account lockout (#50776) 2019-01-23 11:32:25 -05:00
executor Perf improvement for Templar.is_template (#57489) 2019-06-06 15:49:26 -04:00
galaxy Ansible galaxy role download should not have to perform aditionnal check against tar archive file extension #56616. (#56617) 2019-06-13 09:23:41 -05:00
inventory Perf improvement for Templar.is_template (#57489) 2019-06-06 15:49:26 -04:00
module_utils Meraki - Convert response keys to snake_case from camelCase (#53891) 2019-06-13 15:07:30 -04:00
modules Meraki - Convert response keys to snake_case from camelCase (#53891) 2019-06-13 15:07:30 -04:00
parsing Perf improvement for Templar.is_template (#57489) 2019-06-06 15:49:26 -04:00
playbook Perf improvement for Templar.is_template (#57489) 2019-06-06 15:49:26 -04:00
plugins Meraki - Convert response keys to snake_case from camelCase (#53891) 2019-06-13 15:07:30 -04:00
template Perf improvement for Templar.is_template (#57489) 2019-06-06 15:49:26 -04:00
utils some logging fixes (#56311) 2019-05-24 16:43:47 -04:00
vars [FactCache] define first_order_merge method (#55781) 2019-06-10 14:34:06 -04:00
__init__.py
constants.py removed previouslly deprecated settings (#55662) 2019-05-15 16:36:30 -04:00
context.py Become plugins (#50991) 2019-02-11 11:27:44 -06:00
release.py Cleanup the tree for post-2.8-branch 2019-04-12 12:57:35 -07:00