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
While running tests for aci_bulk_static_binding_to_epg (#822) I am seeing errors when setting ansible_connection=ansible.netcommon.httpapi. Workaround applied for now in the code to handle the none situation with a try/catch
It appears to be an issue with the api_call function aci.
Affected Module Name(s):
- aci_rest
- aci_bulk_static_binding_to_epg
APIC version and APIC Platform
Collection versions
Output/ Error message
found because read() was called on a None object in aci_bulk_static_binding_to_epg
fatal: [cn-dmz-apic-m1-03-v60]: FAILED! => {
"changed": false,
"msg": "Task failed: Module failed: 'NoneType' object has no attribute 'read'"
}
Expected Behavior
- Response should be handled the same for both local and httpapi plugin connection
Actual Behavior
- Response is none for httpapi plugin connection
- Response is valid for local connection
Playbook tasks to Reproduce
Important Factoids
References
Community Note
Description
While running tests for aci_bulk_static_binding_to_epg (#822) I am seeing errors when setting
ansible_connection=ansible.netcommon.httpapi. Workaround applied for now in the code to handle the none situation with a try/catchIt appears to be an issue with the api_call function aci.
Affected Module Name(s):
APIC version and APIC Platform
Collection versions
Output/ Error message
found because read() was called on a None object in aci_bulk_static_binding_to_epg
fatal: [cn-dmz-apic-m1-03-v60]: FAILED! => {
"changed": false,
"msg": "Task failed: Module failed: 'NoneType' object has no attribute 'read'"
}
Expected Behavior
Actual Behavior
Playbook tasks to Reproduce
Important Factoids
References