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