CiscoDevNet / ansible-aci

Cisco ACI Ansible Collection
https://galaxy.ansible.com/cisco/aci
GNU General Public License v3.0
143 stars 97 forks source link

Made changes to aci_rest module to only add annotation when the value is a dictionary and changed the way the cookie is retrieved in the httpapi plugin (DCNE-176) #689

Closed shrsr closed 1 month ago

shrsr commented 1 month ago

For now the only case we've seen where imdata is not in the response is when the instance of the response is of type list. We do the following to cover that particular case:

if isinstance(jsondata, list):
            self.imdata = jsondata
            self.totalCount = len(jsondata)

With the above code the response is visible in the output when the System API endpoint is called upon.