ansible/test/units/modules/system
Olivier Bourdon 612d0d6634 Fix interfaces_file for proper file contents (#37818)
The generated file was completely unusable by the system
therefore the fix which ensures that diffing the file
prior to changes and after only shows diffs

Furthermore the code did not work for Python 3.6
>       f.writelines(to_bytes(lines, errors='surrogate_or_strict'))
E       TypeError: a bytes-like object is required, not 'int'

The other modifications (lambda variable renaming) is to
comply with default flake8 rules
2018-03-28 10:21:43 +01:00
..
interfaces_file Fix interfaces_file for proper file contents (#37818) 2018-03-28 10:21:43 +01:00
__init__.py New module: manage debian network interfaces file /etc/network/interfaces (system/interfaces_file) (#25295) 2017-08-01 12:11:43 -06:00
test_iptables.py Unit tests: share common code (#31456) 2017-11-17 09:17:07 -08:00
test_known_hosts.py test/: PEP8 compliancy (#24803) 2017-05-30 18:05:19 +01:00
test_linux_mountinfo.py Fix leading slashes being stripped from mount src (#24013) 2017-08-29 15:16:53 +02:00
test_pamd.py Fixes #35629 (#35668) 2018-02-05 15:47:14 -06:00
test_parted.py Unit tests: share common code (#31456) 2017-11-17 09:17:07 -08:00
test_systemd.py Fix PEP 8 issue. 2017-04-28 06:51:44 +08:00