diff --git a/changelogs/fragments/43-sanity.yml b/changelogs/fragments/43-sanity.yml new file mode 100644 index 00000000..5c918d12 --- /dev/null +++ b/changelogs/fragments/43-sanity.yml @@ -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)." diff --git a/plugins/cliconf/routeros.py b/plugins/cliconf/routeros.py index 6c493734..f46b3a08 100644 --- a/plugins/cliconf/routeros.py +++ b/plugins/cliconf/routeros.py @@ -65,7 +65,7 @@ def get_device_info(self): 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): diff --git a/tests/unit/plugins/modules/test_facts.py b/tests/unit/plugins/modules/test_facts.py index ea111df6..95520472 100644 --- a/tests/unit/plugins/modules/test_facts.py +++ b/tests/unit/plugins/modules/test_facts.py @@ -43,7 +43,7 @@ def load_from_file(*args, **kwargs): 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