OutputFolder variable renamed to OutputPath
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user