Skip to content

BUG in CLI.execute() in netapp-ontap python client library #53

@11tonytony11

Description

@11tonytony11

In the resources/cli.py module there is a bug which causes the library to do a POST instead of GET for the command vserver export-policy check-access

The _parse_command(command) function looks for show or status in the action_word in order to change the request type from POST to GET in the if statement and not forr check-access.

The reference code:

if "show" in action_word or "status" in action_word: # Need to add check-access here probably
        verb = "get"
        if action_word.startswith("show-"):
            everything_else.append("-".join(action_word.split("-")[1:]))
        elif action_word != "show":
            everything_else.append(action_word)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions