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

ARI release 0.2.8 inline replace functionality is not performing as expected #257

Open
justjais opened this issue Sep 11, 2024 · 0 comments

Comments

@justjais
Copy link
Contributor

ARI release 0.2.8 inline replace functionality is not performing as expected, ref below scenario:
Input:

---
- name: Parse bgp summary
  ansible.utils.cli_parse:
    command: "show ip bgp summary"
    parser:
      name: ansible.netcommon.content_templates
    set_fact: bgp_health

Output:

- name: Parse bgp summary
  ansible.utils.cli_parse:
    command: show ip bgp summary
    parser:
      name: ansible.netcommon.content_templates

In above output --- yaml is missing, and also set_fact: bgp_health is not being replaced as expected after inline replace

Input:

---
- name: Parse bgp summary
  ansible.utils.cli_parse:
    command: "show bgp summary"
    parser:
      name: ansible.netcommon.content_templates
    set_fact: bgp_health


- name: Show Summary facts
  debug:
    msg: "{{ bgp_health }}"

Output:


- name: Parse bgp summary
  ansible.utils.cli_parse:
    command: show bgp summary
    parser:
      name: ansible.netcommon.content_templates
    set_fact: bgp_health
- name: Show Summary facts
  ansible.builtin.debug:

As, in above output --- yaml syntax is replaced and debug msg is not being replaced as expected post inline replace functionality

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant