You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You are using the wrong module. na_ontap_rest_cli uses the private cli passthrough endpoint. This basically maps to CLI commands. The "metrocluster switchover" command has no parameter called "action".
Summary
when trying to simulate a metrocluster switchover simulte using netapp.ontap.na_ontap_rest_cli i use the following command:
command: 'metrocluster/switchover'
body:
action: negotiated_switchover_simulate
verb: PATCH
but i always receive the following error:
FAILED! => {"changed": false, "msg": "Error: {'message': 'Unexpected argument "action".', 'code': '262179', 'target': 'action'}"}
when doing the same call using curl it works. am i missing something in my task or is there a bug in this?
thank you
Component Name
netapp.ontap.na_ontap_rest_cli
Ansible Version
ONTAP Collection Version
ONTAP Version
NetApp Release 9.11.1P6
Playbook
Steps to Reproduce
Expected Results
switchover simulte successful or failed
Actual Results
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Error: {'message': 'Unexpected argument \"action\".', 'code': '262179', 'target': 'action'}"}
The text was updated successfully, but these errors were encountered: