OutputFolder variable renamed to OutputPath

This commit is contained in:
Wes Carroll
2019-03-31 21:20:47 -04:00
parent 2b441614f0
commit a7839b24d9
+4 -2
View File
@@ -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
}
}