Merge pull request #97 from ZertoPublic/wcarroll/issue96

Fixes Set-ZertoLicense ShouldProcess issue
This commit is contained in:
Wes Carroll
2020-07-01 19:11:54 -04:00
committed by GitHub
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -15,6 +15,10 @@ and this project is transitioning to [Semantic Versioning](https://semver.org/sp
* Updated `New-ZertoVpg` to have a Default Parameter Set of `recoveryHostDatastore` should no parameters be passed when calling the function.
* Updated `New-ZertoVpg -recoverySite` parameter to be case-insensitive
#### Fixed
* Fixed an [issue](https://github.com/ZertoPublic/ZertoApiWrapper/issues/96) with `Set-ZertoLicense` so that ShouldProcess functions properly.
## [1.4.2]
### Zerto Virtual Manager
+1 -1
View File
@@ -16,7 +16,7 @@ function Set-ZertoLicense {
}
process {
if ($PSCmdlet.ShouldProcess()) {
if ($PSCmdlet.ShouldProcess("Applying License Key: $licenseKey to server: $($script:zvmServer)")) {
Invoke-ZertoRestRequest -uri $baseUri -body $($body | ConvertTo-Json) -method "PUT"
}
}