Skip to content

Commit

Permalink
Fix sanity failures (#43)
Browse files Browse the repository at this point in the history
* Fix sanity failures.

* Add changelog fragment.
  • Loading branch information
felixfontein authored Aug 12, 2021
1 parent bd11378 commit a88f4c8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/43-sanity.yml
Original file line number Diff line number Diff line change
@@ -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)."
2 changes: 1 addition & 1 deletion plugins/cliconf/routeros.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/plugins/modules/test_facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a88f4c8

Please sign in to comment.