ontap-rest-python icon indicating copy to clipboard operation
ontap-rest-python copied to clipboard

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

Open 11tonytony11 opened this issue 6 months ago • 1 comments

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)

11tonytony11 avatar Sep 25 '25 07:09 11tonytony11

Thank you for reporting an issue! If you haven't already joined our Discord community, then we invite you to do so. This is a great place to get help and ask questions from our community.

github-actions[bot] avatar Sep 25 '25 07:09 github-actions[bot]