falconpy icon indicating copy to clipboard operation
falconpy copied to clipboard

[ BUG ] Uber Class command method keyword "action" collides with action parameter utilized by updatePolicyHostGroups operation.

Open jshcodes opened this issue 9 months ago • 0 comments

Describe the bug The Uber Class command method defines the initial argument that specifies the operation to perform as action. This value may be provided as a positional or keyword argument.

The updatePolicyHostGroups operation provided by the FileVantage service collection makes use of a parameter named action which will collide with the command method keyword when users leverage parameter abstraction.

To Reproduce

  • Construct an instance of the Uber Class (APIHarnessV2).
  • Call the updatePolicyHostGroups operation and specify assign or unassign for the action. Provide this value as a keyword, not as part of a parameters dictionary.
  • The action value will be lost and overridden with the Operation ID; updatePolicyHostGroups.

Expected behavior The action parameter is respected when this operation is called from the Uber Class command method.

Environment (please complete the following information):

  • OS: All Supported
  • Python: All Supported
  • FalconPy: v1.3.1+

Additional context Thanks go out to @Don-Swanson-Adobe for identifying and reporting this issue! 🙇

jshcodes avatar May 16 '24 17:05 jshcodes