You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
7 years ago
..
fixtures Fix interfaces_file for proper file contents (#37818) 7 years ago
__init__.py New module: manage debian network interfaces file /etc/network/interfaces (system/interfaces_file) (#25295) 7 years ago
test_interfaces_file.py Fix interfaces_file for proper file contents (#37818) 7 years ago