Add Parameter Validation
This commit is contained in:
@@ -29,6 +29,7 @@ function Get-ZADatastore {
|
|||||||
ParameterSetName = "datastore",
|
ParameterSetName = "datastore",
|
||||||
Mandatory = $true
|
Mandatory = $true
|
||||||
)]
|
)]
|
||||||
|
[ValidateNotNullOrEmpty()]
|
||||||
[string]$datastoreIdentifier
|
[string]$datastoreIdentifier
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ function Get-ZAVolume {
|
|||||||
Mandatory,
|
Mandatory,
|
||||||
ParameterSetName = "VpgIdentifier"
|
ParameterSetName = "VpgIdentifier"
|
||||||
)]
|
)]
|
||||||
|
[ValidateNotNullOrEmpty()]
|
||||||
[string]$vpgIdentifier
|
[string]$vpgIdentifier
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user