ansible/test/units/modules/system/interfaces_file/fixtures/golden_output
Olivier Bourdon 98633e5157 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
(cherry picked from commit 612d0d6634)
2018-03-29 14:42:25 -07:00
..
default_dhcp.test_no_changes
default_dhcp.test_no_changes.json
default_dhcp_add_aggi_up
default_dhcp_add_aggi_up.exceptions.txt
default_dhcp_add_aggi_up.json
default_dhcp_add_and_delete_aggi_up
default_dhcp_add_and_delete_aggi_up.exceptions.txt
default_dhcp_add_and_delete_aggi_up.json
default_dhcp_revert
default_dhcp_revert.exceptions.txt
default_dhcp_revert.json
default_dhcp_set_aggi_and_eth0_mtu
default_dhcp_set_aggi_and_eth0_mtu.exceptions.txt
default_dhcp_set_aggi_and_eth0_mtu.json
default_dhcp_set_aggi_slaves
default_dhcp_set_aggi_slaves.exceptions.txt
default_dhcp_set_aggi_slaves.json
servers.com.test_no_changes
servers.com.test_no_changes.json
servers.com_add_aggi_up
servers.com_add_aggi_up.exceptions.txt
servers.com_add_aggi_up.json
servers.com_add_and_delete_aggi_up
servers.com_add_and_delete_aggi_up.exceptions.txt
servers.com_add_and_delete_aggi_up.json
servers.com_revert
servers.com_revert.exceptions.txt
servers.com_revert.json
servers.com_set_aggi_and_eth0_mtu
servers.com_set_aggi_and_eth0_mtu.exceptions.txt
servers.com_set_aggi_and_eth0_mtu.json
servers.com_set_aggi_slaves
servers.com_set_aggi_slaves.exceptions.txt
servers.com_set_aggi_slaves.json