community.general/lib/ansible/modules
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
..
cloud cloud: ovirt: add developer README.rst (#22685) 2017-08-28 20:58:30 -04:00
clustering Kubernetes PATCH operation (#19428) 2017-08-22 18:11:10 -04:00
commands Update metadata to 1.1 2017-08-15 23:12:08 -07:00
crypto openssl_certificate: consistent param namings (#28521) 2017-08-28 17:29:16 +02:00
database Fix `postgresql_user` module to treat quoted identifier well, Fixes #18937 (#18938) 2017-08-17 12:40:24 -04:00
files Small cleanup in return values (#28693) 2017-08-27 00:25:20 +02:00
identity ipa_group: Fix issue 25660 (#26282) 2017-08-29 08:37:16 +02:00
inventory Update metadata to 1.1 2017-08-15 23:12:08 -07:00
messaging Update metadata to 1.1 2017-08-15 23:12:08 -07:00
monitoring Correct mute function in datadog_monitor (#19662) 2017-08-22 09:38:07 -04:00
net_tools HAProxy: add support for draining connections in maintenace mode (#25887) 2017-08-29 07:01:52 -04:00
network [WIP] Fix nxos_banner (#28607) 2017-08-28 17:09:54 -04:00
notification Fix metadata in syslogger module. 2017-08-21 13:14:55 -04:00
packaging npm: fix idempotence (#22238) 2017-08-28 17:26:01 -04:00
remote_management Added support to HPE Network Set resources (#28614) 2017-08-27 00:49:12 +02:00
source_control Don't remove comment from public key, and improve error message for duplicate keys (github_key) (#22282) 2017-08-17 15:38:39 -04:00
storage Set protection group enabled by default with option to disable (#28582) 2017-08-24 17:48:01 +02:00
system Fix leading slashes being stripped from mount src (#24013) 2017-08-29 15:16:53 +02:00
utilities Update metadata to 1.1 2017-08-15 23:12:08 -07:00
web_infrastructure Fix trailing space in ec2_vol example, fix 'the the' typos (#28440) 2017-08-19 23:00:51 +02:00
windows win_get_url: Add use_proxy, headers and timeout (#26612) 2017-08-28 20:11:10 -04:00
__init__.py