From 46951b76ba4cf2fd1f5c188512825bbfa476114f Mon Sep 17 00:00:00 2001 From: Wes Carroll Date: Fri, 26 Jul 2019 08:33:41 -0400 Subject: [PATCH] Add missing formatting variable to the Get-ZAVpg function (#41) * Add missing formatting variable * Update ReleaseNotes --- RELEASENOTES.md | 1 + ZertoApiWrapper/Public/Get-ZAVpg.ps1 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASENOTES.md b/RELEASENOTES.md index e4df1d1..33751db 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -9,3 +9,4 @@ ### Zerto Analytics * Fixed an [issue](https://github.com/ZertoPublic/ZertoApiWrapper/issues/36) where the Zerto Analytics Rest Request function was not checking for the token before attempting a connection. +* Fixed an [issue](https://github.com/ZertoPublic/ZertoApiWrapper/issues/40) where the `Get-ZAVpg` method would return a 404 error when a `-vpgIdentifier` parameter was specified. diff --git a/ZertoApiWrapper/Public/Get-ZAVpg.ps1 b/ZertoApiWrapper/Public/Get-ZAVpg.ps1 index 3b31e20..a105390 100644 --- a/ZertoApiWrapper/Public/Get-ZAVpg.ps1 +++ b/ZertoApiWrapper/Public/Get-ZAVpg.ps1 @@ -28,7 +28,7 @@ function Get-ZAVpg { } vpg { - $uri = "{0}/$vpgIdentifier" + $uri = "{0}/$vpgIdentifier" -f $uri } }