From a7839b24d9ad0aaf6649d9aed67c85bb37a2d71b Mon Sep 17 00:00:00 2001 From: Wes Carroll Date: Sun, 31 Mar 2019 21:20:47 -0400 Subject: [PATCH] OutputFolder variable renamed to OutputPath --- ZertoApiWrapper/Public/Export-ZertoVpg.ps1 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ZertoApiWrapper/Public/Export-ZertoVpg.ps1 b/ZertoApiWrapper/Public/Export-ZertoVpg.ps1 index 72224e6..df3035e 100644 --- a/ZertoApiWrapper/Public/Export-ZertoVpg.ps1 +++ b/ZertoApiWrapper/Public/Export-ZertoVpg.ps1 @@ -6,7 +6,9 @@ function Export-ZertoVpg { HelpMessage = "Location where to dump the resulting JSON files containing the VPG Settings", Mandatory = $true )] - [string]$outputFolder, + [ValidateNotNullOrEmpty()] + [Alias("outputFolder")] + [string]$outputPath, [parameter( HelpMessage = "Name(s) of the VPG(s) to be exported", ParameterSetName = "namedVpgs" @@ -31,7 +33,7 @@ function Export-ZertoVpg { foreach ($name in $vpgName) { $vpgSettingsIdentifier = New-ZertoVpgSettingsIdentifier -vpgIdentifier $(Get-ZertoVpg -name $name).vpgIdentifier $vpgSettings = Get-ZertoVpgSetting -vpgSettingsIdentifier $vpgSettingsIdentifier - $filePath = "{0}\{1}.json" -f $outputFolder, $name + $filePath = "{0}\{1}.json" -f $outputPath, $name $vpgSettings | Convertto-Json -depth 10 | Out-File -FilePath $filePath } }