rubrikinc / rubrik-sdk-for-powershell

Rubrik Module for PowerShell
https://build.rubrik.com/sdks/powershell/
MIT License
102 stars 87 forks source link

Fix 2 issues #826

Closed tonypags closed 1 year ago

tonypags commented 1 year ago
  1. PSv5 won't run this function because Invoke-RestMethod doesn't yet support SkipCertificateCheck. Changed logic to add this parameter conditionally.
  2. The Session ID is not returned; null values are hard-coded. Added the value from the response to the hashtable.

Related Issue

  1. https://github.com/rubrikinc/rubrik-sdk-for-powershell/issues/817
  2. No issue exists

Motivation and Context

  1. I am unable to run code in production using the current version.
  2. I am unable to disconnect a specific session without its ID

Types of changes

What types of changes does your code introduce? Put an x in all the boxes that apply:

Checklist:

Go over all the following points, and put an x in all the boxes that apply. If you're unsure about any of these, don't hesitate to ask. We're here to help!

tonypags commented 1 year ago

I've made minor changes which do not need changes to docs. I also added unit test for Service Account, which would have caught this issue (includes mock for invoke-restmethod).