Skip to content

User error or bug with cli_parse TTP and TextFSM usage? #49

Answered by ganeshrn
netopsengineer asked this question in Q&A
Discussion options

You must be logged in to vote

Going through the code for ttp and textfsm sub-plugins I can see an issue in code at line https://github.com/ansible-collections/ansible.utils/blob/main/plugins/sub_plugins/cli_parser/ttp_parser.py#L102 and https://github.com/ansible-collections/ansible.utils/blob/main/plugins/sub_plugins/cli_parser/textfsm_parser.py#L97 which returns error key in result whereas the expected key is errors (https://github.com/ansible-collections/ansible.utils/blob/main/plugins/action/cli_parse.py#L368). Please try to replace error with errors in the sub-plugins at the line I shared. After that, it should print the template path that it is looking for.

If it still does not fic the issue can you please share…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ganeshrn
Comment options

@netopsengineer
Comment options

Answer selected by netopsengineer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants