Verbose config extra fact (#23)

* allow nonverbose idempotent config

* nonverbose config output

* typpo

* typpo

* release fragment

* config extra fact

* add fact ansible_net_config_nonverbose

* unit tests

* changelog fragments

* remove version fragment

* remove extra debug printf()

* update chlog fragment

* corrections for upstream pull request

* corrections for upstream pull request

* typo in changelog fragment

Co-authored-by: Felix Fontein <felix@fontein.de>

* typo in filename

Co-authored-by: Petr Klima <petr.klima@madeta.cz>
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
Petr Klíma 2021-03-29 19:05:10 +02:00 committed by GitHub
parent 7bab58eae9
commit 1c18d34536
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 53 additions and 1 deletions

View file

@ -94,6 +94,10 @@ class TestRouterosFactsModule(TestRouterosModule):
result['ansible_facts']['ansible_net_config'], str
)
self.assertIsInstance(
result['ansible_facts']['ansible_net_config_nonverbose'], str
)
def test_facts_interfaces(self):
set_module_args(dict(gather_subset='interfaces'))
result = self.execute_module()