Updete to use process block for pipeline
This commit is contained in:
@@ -15,8 +15,16 @@ function Save-ZertoVpgSetting {
|
||||
[string]$vpgSettingsIdentifier
|
||||
)
|
||||
|
||||
$baseUri = "vpgsettings/{0}/commit" -f $vpgSettingsIdentifier
|
||||
if ($PSCmdlet.ShouldProcess("Commiting VPG Settings with Settigns identifier $vpgSettingsIdentifier")) {
|
||||
Invoke-ZertoRestRequest -uri $baseUri -method "POST"
|
||||
Begin {
|
||||
}
|
||||
|
||||
Process {
|
||||
$baseUri = "vpgsettings/{0}/commit" -f $vpgSettingsIdentifier
|
||||
if ($PSCmdlet.ShouldProcess("Commiting VPG Settings with Settigns identifier $vpgSettingsIdentifier")) {
|
||||
Invoke-ZertoRestRequest -uri $baseUri -method "POST"
|
||||
}
|
||||
}
|
||||
|
||||
End {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user