From 8edfdf1af9e32d4a547964d815c99cf5c11dd9b2 Mon Sep 17 00:00:00 2001 From: Wes Carroll Date: Fri, 22 Feb 2019 07:13:32 -0500 Subject: [PATCH] Add missing variable to parameter --- ZertoApiWrapper/Public/Uninstall-ZertoVra.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ZertoApiWrapper/Public/Uninstall-ZertoVra.ps1 b/ZertoApiWrapper/Public/Uninstall-ZertoVra.ps1 index 6d08c85..6775e5f 100644 --- a/ZertoApiWrapper/Public/Uninstall-ZertoVra.ps1 +++ b/ZertoApiWrapper/Public/Uninstall-ZertoVra.ps1 @@ -12,7 +12,7 @@ function Uninstall-ZertoVra { process { foreach ($name in $hostName) { $vraName = "Z-VRA-{0}" -f $name - $vraIdentifier = get-zertovra -vraName | Select-Object vraIdentifier -ExpandProperty vraIdentifier + $vraIdentifier = get-zertovra -vraName $vraName | Select-Object vraIdentifier -ExpandProperty vraIdentifier $uri = "{0}/{1}" -f $baseUri, $vraIdentifier.toString() Invoke-ZertoRestRequest -uri $uri -method "DELETE" } @@ -21,4 +21,4 @@ function Uninstall-ZertoVra { end { } -} \ No newline at end of file +}