ansible/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
test_interfaces_file.py Fix interfaces_file for proper file contents (#37818) 2018-03-28 10:21:43 +01:00