Skip to content

api_call function with httpapi plugin is not returning reponse (DCNE-809) #841

@akinross

Description

@akinross

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

  • any version

Collection versions

  • cisco.aci v2.13.0

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

  • #0000

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingjira-syncSync this issue to Jira

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions