From 0eaf89608be745252bc57f07132482764d39e9f2 Mon Sep 17 00:00:00 2001 From: Wes Carroll Date: Mon, 19 Oct 2020 18:22:10 -0400 Subject: [PATCH 1/4] Clean up VPG Settings Identifier --- ZertoApiWrapper/Public/Export-ZertoVpg.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/ZertoApiWrapper/Public/Export-ZertoVpg.ps1 b/ZertoApiWrapper/Public/Export-ZertoVpg.ps1 index 2d00a83..2d71999 100644 --- a/ZertoApiWrapper/Public/Export-ZertoVpg.ps1 +++ b/ZertoApiWrapper/Public/Export-ZertoVpg.ps1 @@ -38,6 +38,7 @@ function Export-ZertoVpg { $vpgSettings = Get-ZertoVpgSetting -vpgSettingsIdentifier $vpgSettingsIdentifier $filePath = "{0}\{1}.json" -f $outputPath, $name $vpgSettings | Convertto-Json -depth 10 | Out-File -FilePath $filePath + $null = Remove-ZertoVpgSettingsIdentifier -vpgSettingsIdentifier $vpgSettingsIdentifier } } From 84b79221569b7b10f3da008f202cc3872a439e5f Mon Sep 17 00:00:00 2001 From: Wes Carroll Date: Mon, 19 Oct 2020 18:24:08 -0400 Subject: [PATCH 2/4] Update CHANGELOG --- CHANGELOG.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ffc6a35..835a733 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project is transitioning to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.5.2] + +### Zerto Virtual Manager + +#### Fixed + +* Fixed an issue when attempting to export more than 100 VPGs with the `Export-ZertoVpg` function that would cause an error. + ## [1.5.1] ### Zerto Virtual Manager From d3d01f892f685929e2fb687600a2bfcd71ea8d4b Mon Sep 17 00:00:00 2001 From: Wes Carroll Date: Mon, 19 Oct 2020 18:35:30 -0400 Subject: [PATCH 3/4] Bump Version --- version.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.txt b/version.txt index 26ca594..4cda8f1 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -1.5.1 +1.5.2 From 4ac951607bc7ba06d4c58efa656b4aed8d6eda29 Mon Sep 17 00:00:00 2001 From: Wes Carroll Date: Mon, 19 Oct 2020 18:43:13 -0400 Subject: [PATCH 4/4] Add required Mock --- Tests/Public/Export-ZertoVpg.Tests.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Tests/Public/Export-ZertoVpg.Tests.ps1 b/Tests/Public/Export-ZertoVpg.Tests.ps1 index 957092a..0e5ec77 100644 --- a/Tests/Public/Export-ZertoVpg.Tests.ps1 +++ b/Tests/Public/Export-ZertoVpg.Tests.ps1 @@ -46,6 +46,10 @@ Describe $global:function -Tag 'Unit', 'Source', 'Built' { return "1024d377-afb8-4880-82f0-96eeff413ffd" } + Mock -ModuleName ZertoApiWrapper -CommandName Remove-ZertoVpgSettingsIdentifier { + return $null + } + Mock -ModuleName ZertoApiWrapper -CommandName Get-ZertoVpgSetting { $returnObj = @{ Backup = $null