mirror of
https://github.com/ansible-collections/community.routeros.git
synced 2025-06-25 19:28:44 +02:00
Fix sanity failures (#43)
* Fix sanity failures.
* Add changelog fragment.
(cherry picked from commit a88f4c804b
)
This commit is contained in:
parent
11e6cd0a6e
commit
8ee9e8b5ff
3 changed files with 4 additions and 2 deletions
2
changelogs/fragments/43-sanity.yml
Normal file
2
changelogs/fragments/43-sanity.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- "routeros cliconf plugin - adjust function signature that was modified in Ansible after creation of this plugin (https://github.com/ansible-collections/community.routeros/pull/43)."
|
|
@ -65,7 +65,7 @@ class Cliconf(CliconfBase):
|
|||
|
||||
return device_info
|
||||
|
||||
def get_config(self, source='running', format='text', flags=None):
|
||||
def get_config(self, source='running', flags=None, format=None):
|
||||
return
|
||||
|
||||
def edit_config(self, command):
|
||||
|
|
|
@ -43,7 +43,7 @@ class TestRouterosFactsModule(TestRouterosModule):
|
|||
output = list()
|
||||
|
||||
for command in commands:
|
||||
filename = str(command).split(' | ')[0].replace(' ', '_')
|
||||
filename = str(command).split(' | ', 1)[0].replace(' ', '_')
|
||||
output.append(load_fixture('facts%s' % filename))
|
||||
return output
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue