Skip to content

Commit 118f432

Browse files
akira6592NilashishCKB-perByte
authored
Fix module name and log consistency in parse_cli_textfsm filter doc (ansible-collections#614)
* fix module name and log consistency * add changelog fragment * Update 614-fix-parse_cli_textfsm-doc.yaml --------- Co-authored-by: Nilashish Chakraborty <[email protected]> Co-authored-by: Sagar Paul <[email protected]>
1 parent d579c74 commit 118f432

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
doc_changes:
3+
- Fixed module name and log consistency in parse_cli_textfsm filter doc.

docs/ansible.netcommon.parse_cli_textfsm_filter.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,14 @@ Examples
101101
device_neighbors: "{{ lldp_output.stdout[0] | parse_cli_textfsm('~/ntc-templates/templates/cisco_ios_show_lldp_neighbors.textfsm') }}"
102102
103103
- name: "Debug"
104-
ansible.builtindebug:
104+
ansible.builtin.debug:
105105
msg: "{{ device_neighbors }}"
106106
107107
# Task Output
108108
# -----------
109109
#
110110
# TASK [Fetch command output]
111-
# ok: [rtr-2]
111+
# ok: [rtr-1]
112112
113113
# TASK [Invoke parse_cli_textfsm]
114114
# ok: [rtr-1]

plugins/filter/parse_cli_textfsm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@
5252
device_neighbors: "{{ lldp_output.stdout[0] | parse_cli_textfsm('~/ntc-templates/templates/cisco_ios_show_lldp_neighbors.textfsm') }}"
5353
5454
- name: "Debug"
55-
ansible.builtindebug:
55+
ansible.builtin.debug:
5656
msg: "{{ device_neighbors }}"
5757
5858
# Task Output
5959
# -----------
6060
#
6161
# TASK [Fetch command output]
62-
# ok: [rtr-2]
62+
# ok: [rtr-1]
6363
6464
# TASK [Invoke parse_cli_textfsm]
6565
# ok: [rtr-1]

0 commit comments

Comments
 (0)