From 41fddf5f13fde3836df623003cb49e50cca019c9 Mon Sep 17 00:00:00 2001 From: Wes Carroll Date: Wed, 1 Jul 2020 17:09:38 -0400 Subject: [PATCH] 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" } }