From 5990d57285bd69dd87b33bf2916d20960efb8667 Mon Sep 17 00:00:00 2001 From: Wes Carroll Date: Thu, 6 Jun 2019 11:31:44 -0400 Subject: [PATCH] Fix variable Typo --- ZertoApiWrapper/Public/Get-ZAAlert.ps1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ZertoApiWrapper/Public/Get-ZAAlert.ps1 b/ZertoApiWrapper/Public/Get-ZAAlert.ps1 index f47ca3f..f2e4a2d 100644 --- a/ZertoApiWrapper/Public/Get-ZAAlert.ps1 +++ b/ZertoApiWrapper/Public/Get-ZAAlert.ps1 @@ -16,10 +16,10 @@ function Get-ZAAlert { [int]$limitTo, [Parameter( HelpMessage = "The VPG Idnetifier", - ParameterSetName = "vpgId" + ParameterSetName = "alertId" )] [ValidateNotNullOrEmpty()] - [string]$vpgIdentifier + [string]$alertIdentifier ) $uri = "monitoring/alerts" switch ($PSCmdlet.ParameterSetName) { @@ -30,8 +30,8 @@ function Get-ZAAlert { } } - vpgId { - $uri = "{0}/{1}" -f $uri, $vpgIdentifier + alertId { + $uri = "{0}/{1}" -f $uri, $alertIdentifier } } Invoke-ZARestRequest -uri $uri