-
Notifications
You must be signed in to change notification settings - Fork 87
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
Draft PR - Issue 352 - Converting booleans to swich #473
Conversation
@jaapbrasser - you might want to have a close look at this one as it does introduce the ability to break existing scripts. For the most part I think the cmdlets are ok - however Export-RubrikVM has changed quite a bit Export-RubrikVM These need to be modified to say like Export-RubrikVM -id '111-222' -PowerOn:$false or -PowerOn:$true or simply -PowerOn We may want to proceed with this PR and possibly just exclude the changes on the Export-VM cmdlet ?? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed and tested your changes, thanks for you contribution @mwpreston!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed psd1
Description
Migrated boolean parameters to switch parameters in order to provide a more consistent approach across all cmdlets.
Note: This has the possibility of providing breaking changes as the syntax of calling the parameters like '-Parameter $true' will no longer be supported.
For Example:
Export-RubrikVM -PowerOn $False will continue to run, however the $False gets assigned to the VM Name.
Get-RubrikOrganization -isGlobal $true will now fail.
Will need to ensure these are addressed in the release notes.
Cmdlets affected are
Export-RubrikVM
,Get-RubrikEvent
,Get-RubrikOrganization
,New-RubrikHost
,New-RubrikMount
,Set-RubrikMount
,Set-RubrikNutanixVM
,Set-RubrikSupportTunnel
andSet-RubrikVM
Related Issue
This project only accepts pull requests related to open issues.
Issue 352
Motivation and Context
This provides a consistent approach for our end-users across all of the cmdlets.
How Has This Been Tested?
Tested within the TM lab on version 4.2 and 5.0
Screenshots (if appropriate):
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!