1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/units/modules/system/interfaces_file
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
..
fixtures 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_interfaces_file.py Fix interfaces_file for proper file contents (#37818) 2018-03-28 10:21:43 +01:00