Add Parameter Validation

This commit is contained in:
Wes Carroll
2019-06-09 12:18:11 -04:00
parent 72cbe0eb29
commit 89bfe61a1b
2 changed files with 2 additions and 0 deletions
@@ -29,6 +29,7 @@ function Get-ZADatastore {
ParameterSetName = "datastore",
Mandatory = $true
)]
[ValidateNotNullOrEmpty()]
[string]$datastoreIdentifier
)
+1
View File
@@ -33,6 +33,7 @@ function Get-ZAVolume {
Mandatory,
ParameterSetName = "VpgIdentifier"
)]
[ValidateNotNullOrEmpty()]
[string]$vpgIdentifier
)