CiscoDevNet / ansible-nd

Cisco ND Ansible Collection
https://galaxy.ansible.com/cisco/nd
GNU General Public License v3.0
4 stars 14 forks source link

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

Open adealdag opened 4 months ago

adealdag commented 4 months ago

Community Note

Description

Affected Module Name(s):

ND version and ND Platform

APIC version and APIC Platform for Site related issues

N/A

Collection versions

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

Actual Behavior

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