Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix parse_xml type for tmpl #590

Merged
merged 3 commits into from
Oct 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions changelogs/fragments/fix_attribute_type.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
bugfixes:
- Fix attribute types from string to str in filter plugins.
2 changes: 1 addition & 1 deletion plugins/filter/parse_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
It defines how to parse the CLI output and return JSON data.
- For example C(cli_data | ansible.netcommon.parse_cli(template.yml)),
in this case C(cli_data) represents cli output.
type: string
type: str
"""

EXAMPLES = r"""
Expand Down
2 changes: 1 addition & 1 deletion plugins/filter/parse_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
It defines how to parse the XML output and return JSON data.
- For example C(xml_data | ansible.netcommon.parse_xml(template.yml)),
in this case C(xml_data) represents xml data option.
type: string
type: str
"""

EXAMPLES = r"""
Expand Down
2 changes: 1 addition & 1 deletion plugins/filter/vlan_expander.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
data:
description:
- This option represents a string containing the range of vlans.
type: string
type: str
required: True
"""

Expand Down
Loading