From 41fddf5f13fde3836df623003cb49e50cca019c9 Mon Sep 17 00:00:00 2001 From: Wes Carroll Date: Wed, 1 Jul 2020 17:09:38 -0400 Subject: [PATCH 1/2] Set-ZertoLicense - Fix ShouldProcess error Fixes #96 --- ZertoApiWrapper/Public/Set-ZertoLicense.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ZertoApiWrapper/Public/Set-ZertoLicense.ps1 b/ZertoApiWrapper/Public/Set-ZertoLicense.ps1 index aa95042..90fdd47 100644 --- a/ZertoApiWrapper/Public/Set-ZertoLicense.ps1 +++ b/ZertoApiWrapper/Public/Set-ZertoLicense.ps1 @@ -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" } } From a072905253596e2a3a226ac5ce8b9006c39a5f51 Mon Sep 17 00:00:00 2001 From: Wes Carroll Date: Wed, 1 Jul 2020 17:34:25 -0400 Subject: [PATCH 2/2] Update ChangLog with Issue 96 updates --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 637870c..36f9447 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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