mirror of
https://github.com/ansible-collections/community.routeros.git
synced 2025-07-22 03:44:55 +02:00
Fix linting errors.
This commit is contained in:
parent
3af45c33f1
commit
08152376de
17 changed files with 23 additions and 8 deletions
|
@ -20,6 +20,7 @@ DOCUMENTATION:
|
|||
- Felix Fontein (@felixfontein)
|
||||
|
||||
EXAMPLES: |
|
||||
---
|
||||
- name: Join arguments for a RouterOS CLI command
|
||||
ansible.builtin.set_fact:
|
||||
arguments: "{{ ['foo=bar', 'comment=foo is bar'] | community.routeros.join }}"
|
||||
|
|
|
@ -30,6 +30,7 @@ DOCUMENTATION:
|
|||
- Felix Fontein (@felixfontein)
|
||||
|
||||
EXAMPLES: |
|
||||
---
|
||||
- name: Convert a list to a dictionary
|
||||
ansible.builtin.set_fact:
|
||||
dictionary: "{{ ['foo=bar', 'comment=foo is bar'] | community.routeros.list_to_dict }}"
|
||||
|
|
|
@ -19,9 +19,11 @@ DOCUMENTATION:
|
|||
- Felix Fontein (@felixfontein)
|
||||
|
||||
EXAMPLES: |
|
||||
---
|
||||
- name: Quote a RouterOS CLI command argument
|
||||
ansible.builtin.set_fact:
|
||||
quoted: "{{ 'comment=this is a "comment"' | community.routeros.quote_argument }}"
|
||||
quoted: >-
|
||||
{{ 'comment=this is a "comment"' | community.routeros.quote_argument }}
|
||||
# Should result in 'comment="this is a \"comment\""'
|
||||
|
||||
RETURN:
|
||||
|
|
|
@ -19,9 +19,11 @@ DOCUMENTATION:
|
|||
- Felix Fontein (@felixfontein)
|
||||
|
||||
EXAMPLES: |
|
||||
---
|
||||
- name: Quote a RouterOS CLI command argument's value
|
||||
ansible.builtin.set_fact:
|
||||
quoted: "{{ 'this is a "comment"' | community.routeros.quote_argument_value }}"
|
||||
quoted: >-
|
||||
{{ 'this is a "comment"' | community.routeros.quote_argument_value }}
|
||||
# Should result in '"this is a \"comment\""'
|
||||
|
||||
RETURN:
|
||||
|
|
|
@ -19,9 +19,11 @@ DOCUMENTATION:
|
|||
- Felix Fontein (@felixfontein)
|
||||
|
||||
EXAMPLES: |
|
||||
---
|
||||
- name: Split command into list of arguments
|
||||
ansible.builtin.set_fact:
|
||||
argument_list: "{{ 'foo=bar comment="foo is bar" baz' | community.routeros.split }}"
|
||||
argument_list: >-
|
||||
{{ 'foo=bar comment="foo is bar" baz' | community.routeros.split }}
|
||||
# Should result in ['foo=bar', 'comment=foo is bar', 'baz']
|
||||
|
||||
RETURN:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue