-
Notifications
You must be signed in to change notification settings - Fork 51
Fix for #46 #47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix for #46 #47
Conversation
The parameter block of Set-ITGluePasswords and Remove-ITGluePasswords used "[CmdletBinding(DefaultParameterSetName='')] instead of [Parameter(ParameterSetName = '')].
Changed method to DELETE and remove the body if the parameterset eq Destroy. Made data parameter only mandatory if parameterset is Update or Bulk_destory.
Added method to a variable, default to `DELETE` and change to `PATCH` if parameter set is `bulk_destroy`. Moved `$body` etc to within `bulk_destroy` in order to keep as `null` and not fail during `Invoke-RestMethod`.
Is |
@ecspresso Thank you for the PR. Hope to merge it soon. Do not yet have an answer to your question regarding if |
Remove-ITGluePasswords: Only DELETE method is used when removing password, corrected that. I also removed $data parameter from the parameter set "destroy" because only ID is a valid parameter when deleting a single password.
@adrianwells I updated the function |
@ecspresso, Great! Do you mind incrementing the |
@adrianwells I changed to version 2.0.4, is this correct? |
@ecspresso, yes that looks good! Thank you. |
-body $body
was missing, filtering was not working as a result.