ansible/test/units/modules
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
..
cloud Add a module_utils OpenStack Cloud constructor (#20974) 2018-02-15 17:59:05 +01:00
monitoring Unit tests: share common code (#31456) 2017-11-17 09:17:07 -08:00
net_tools nmcli: Allow setting ipv4.dhcp-client-id parameter (#34268) 2018-01-29 17:02:46 -06:00
network Don't fail on configure in command (#37094) 2018-03-06 18:24:43 -05:00
packaging rhn_channel/register: Porting tests to pytest (#33719) 2017-12-12 07:25:49 -08:00
remote_management Python 2.6 str.format() compatibility fixes. 2018-01-10 14:08:11 -08:00
system Fix interfaces_file for proper file contents (#37818) 2018-03-29 14:42:25 -07:00
web_infrastructure Fix jenkins_plugin test for no net situations (#30568) 2017-09-19 13:12:45 -07:00
__init__.py
conftest.py Porting tests to pytest (#33387) 2017-12-05 12:43:13 -08:00
utils.py Unit tests: share common code (#31456) 2017-11-17 09:17:07 -08:00