Jocelyn Jaubert
7ec49d7472
interfaces_file: Add support for address_family
2018-10-22 20:51:59 +02:00
Matt Clay
8deced3e04
Fix shebangs and file modes and update tests. ( #40563 )
...
* Add execute bit sanity test and apply fixes.
* Add shebang test for `lib` dirs and apply fixes.
* Shebang and execute bit cleanup.
2018-05-22 14:25:36 -07:00
Ed Schaller
5ac41ee8d8
Fix interfaces_file to accept allow-* ( #37847 )
2018-05-11 13:47:06 +01:00
Olivier Bourdon
a3f2e99864
Fix for changing method only on specified interface ( #39015 )
...
Test added for interface method change
2018-04-27 05:18:19 -04:00
Ed Schaller
e6299298f9
Extend interfaces_file to handle sources-directory ( #37809 )
2018-04-20 07:01:46 -04:00
Olivier Bourdon
87a07e81a9
Fix interface method change ( #38996 )
2018-04-19 05:05:39 -04:00
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
alu
b7aa41b9b9
Fix crash in py3: 'TypeError: a bytes-like object is required, not 'str' ( #37504 )
...
* Fix crash in py3: 'TypeError: a bytes-like object is required, not 'str'
Fixes #37387
* Review applied https://github.com/ansible/ansible/pull/37504#pullrequestreview-104799823
2018-03-20 14:33:14 -07:00
Dag Wieers
cdd21e2170
Clean up module documentation ( #36909 )
...
* Clean up module documentation
This PR includes:
- Removal of `default: None` (and variations)
- Removal of `required: false`
- Fixing booleans and `type: bool` where required
* Fix remaining (new) validation issues
2018-03-15 22:15:24 +01:00
Bobby Watson
79b0739ba2
Accept interfaces without address family or method ( #34200 )
2018-02-09 15:09:09 +00:00
Matt Clay
9735a70059
Fix invalid string escape sequences.
2017-11-21 20:59:08 -08:00
Toshio Kuratomi
75eed6a51a
Port arg specs from type='str' to type='path'
2017-10-09 21:15:56 -07:00
Matt Clay
7714dcd04e
Enable more pylint rules and fix reported issues. ( #30539 )
...
* Enable pylint unreachable test.
* Enable pylint suppressed-message test.
* Enable pylint redundant-unittest-assert test.
* Enable pylint bad-open-mode test.
* Enable pylint signature-differs test.
* Enable pylint unnecessary-pass test.
* Enable pylint unnecessary-lambda test.
* Enable pylint raising-bad-type test.
* Enable pylint logging-not-lazy test.
* Enable pylint logging-format-interpolation test.
* Enable pylint useless-else-on-loop test.
2017-09-18 23:20:32 -07:00
Toshio Kuratomi
f203ca7907
Update metadata to 1.1
2017-08-15 23:12:08 -07:00
Toshio Kuratomi
7d2597a68d
change the gpl header to single line version and order of imports
2017-08-01 15:41:07 -07:00
Adrian Likins
a52a4332fd
Fix aruba_config flake8 failures ( #27603 )
...
* Fix aruba_config flake8 failures
* fix intefaces_file build/flake8 fail
2017-08-01 15:48:48 -04:00
Roman Belyakovsky
42039cd436
New module: manage debian network interfaces file /etc/network/interfaces (system/interfaces_file) ( #25295 )
...
* Added new module interfaces_file
* interfaces_file: added unit tests
* interfaces_file: added golden files for unit tests
* interfaces_file: moved to system modules
* interfaces_file: fixed code formatting and convention issues
2017-08-01 12:11:43 -06:00