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

nd_pcv fails when file is XML (DCNE-150) #76

Open
adealdag opened this issue May 27, 2024 · 0 comments · May be fixed by #77
Open

nd_pcv fails when file is XML (DCNE-150) #76

adealdag opened this issue May 27, 2024 · 0 comments · May be fixed by #77
Assignees
Labels
enhancement New feature or request jira-sync Sync this issue to Jira

Comments

@adealdag
Copy link
Contributor

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

Affected Module Name(s):

  • nd_pcv

ND version and ND Platform

  • NDI 6.4.1.45
  • ND 3.1(1k)

APIC version and APIC Platform for Site related issues

N/A

Collection versions

  • cisco.nd 0.5.0

Output/ Error message

TASK [Creates v1 Pre-Change Analysis from file] **********************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
fatal: [nd-cx-rtp]: FAILED! => {
    "changed": false,
    "rc": 1
}

Expected Behavior

  • A Pre-Change Analysis job should have been submitted to ND without any previous manipulation of the file, when extension is XML.

Actual Behavior

  • Module tried to decode XML file as if it's JSON, hence producing an issue.

Playbook tasks to Reproduce

- name: Creates v1 Pre-Change Analysis from file
      cisco.nd.nd_pcv:
        <<: *nd_login
        ig_name: "{{ ig_name }}"
        site_name: "{{ site_name }}"
        name: "pod{{'%02d' % pod_number}}-pca-v1"
        file: "./files/config-pca-ciscolive-lab-pod{{'%02d' % pod_number}}-v1.xml"
        state: present
@adealdag adealdag added the bug Something isn't working label May 27, 2024
@akinross akinross added enhancement New feature or request and removed bug Something isn't working labels May 29, 2024
@adealdag adealdag linked a pull request May 29, 2024 that will close this issue
@samiib samiib added the jira-sync Sync this issue to Jira label Aug 14, 2024
@github-actions github-actions bot changed the title nd_pcv fails when file is XML nd_pcv fails when file is XML (DCNE-150) Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request jira-sync Sync this issue to Jira
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants