Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
@11tonytony11

Description

@11tonytony11
Issue body actions

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.