Skip to content

logout "method not allowed" #182

@mccamicha

Description

@mccamicha

Ansible play
each time running vmanage_device_attachment it fails even if the device is becomes attached to the correct device template.

Testing device attachment with Ansible, versions:

  • controller version: 20.12.2
  • ansible core 2.15.11
  • python version = 3.9.18
  • viptela 0.3.10.

Every time running a simple playbook with device attachment it fails with
"url": "https://"url"/logout", "msg": "method_not_allowed", but the device is attached to a device template in the controller.

looks like it is the logout method which is failing: ansible/module_utils/viptela/viptela.py - line 135. It is using the request method and the default is GET. Tried locally to add "self.request('/logout', method="POST") and I have not received the same error anymore.
Only tested this controller version and for this playbook, but /logout might be a POST request regardless of controller version?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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