Skip to content

Commit

Permalink
Add example to api module which uses quote_argument_value.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed Oct 10, 2021
1 parent d4fe177 commit 00ae229
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugins/modules/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,10 @@
password: "{{ password }}"
username: "{{ username }}"
path: "{{ path }}"
update: ".id={{ query_id }} address={{ ip3 }}"
update: >-
.id={{ query_id }}
address={{ ip3 }}
comment={{ 'A comment with spaces' | community.routeros.quote_argument_value }}
register: updateout
- name: Dump "Update" output
Expand Down

0 comments on commit 00ae229

Please sign in to comment.