mirror of
https://github.com/ansible-collections/community.routeros.git
synced 2025-06-21 09:35:45 +02:00
Add encoding option to API modules (#95)
* Set encoding to UTF-8. * Add encoding parameter to API modules. * librouteros is now patched.
This commit is contained in:
parent
7452195071
commit
023f11f7e1
5 changed files with 42 additions and 33 deletions
|
@ -277,7 +277,7 @@ def main():
|
|||
for modification in modifications:
|
||||
try:
|
||||
api_path.update(**modification)
|
||||
except LibRouterosError as e:
|
||||
except (LibRouterosError, UnicodeEncodeError) as e:
|
||||
module.fail_json(
|
||||
msg='Error while modifying for .id={id}: {error}'.format(
|
||||
id=modification['.id'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue