community.general/lib/ansible
Kai 3251aecd95 Fix leading slashes being stripped from mount src (#24013)
* Tidy mount module for testing

Fix spelling mistakes in comments. I *think* the example for omitting parents
root has the wrong parent ID.

Make mountinfo file a parameter for testing.

* Don't strip leading slash from mounts

The current code does not follow the example, it produces src=tmp/aaa instead
of src=/tmp/aaa. This causes problems with bind mounts under /rootfs.

* Use dictionary to store mounts by ID

Instead of looping over each one to check if the ID matches. This does not
preserve the order of the output on < Python3.6, but that is not necessary.

* Make linux_mounts a dict

Always accessed by 'dst', so avoid looping by just making it a key.

* Add test case for get_linux_mounts
2017-08-29 15:16:53 +02:00
..
cli Fix config value type for VAULT_IDENTITY_LIST (#28678) 2017-08-28 10:13:14 -04:00
compat
config add toggle to controle inventory parse as error (#28729) 2017-08-28 17:17:19 -04:00
errors Ansible Config part2 (#27448) 2017-08-15 16:38:59 -04:00
executor executor stats and task_executor pep8 error (#23651) 2017-08-18 08:55:48 -04:00
galaxy
inventory add toggle to controle inventory parse as error (#28729) 2017-08-28 17:17:19 -04:00
module_utils Added powershell SID utils for shared common code (#27091) 2017-08-28 19:15:58 -04:00
modules Fix leading slashes being stripped from mount src (#24013) 2017-08-29 15:16:53 +02:00
parsing Fixes #22335: Adds filename extension to tempfile for Vault 2017-08-28 11:01:04 -04:00
playbook correctly map to connection_user from remote_user in play_context (#28676) 2017-08-25 15:53:25 -04:00
plugins Convert value of port and timeout in provider to integer (#28732) 2017-08-29 18:40:10 +05:30
template Ansible Config part2 (#27448) 2017-08-15 16:38:59 -04:00
utils skip all hidden keys, allow exclude list 2017-08-28 12:56:14 -04:00
vars make groups magic var dependant on inventory (#28677) 2017-08-28 17:21:11 -04:00
__init__.py
constants.py Ansible Config part2 (#27448) 2017-08-15 16:38:59 -04:00
release.py