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", ParameterSetName = "datastore",
Mandatory = $true Mandatory = $true
)] )]
[ValidateNotNullOrEmpty()]
[string]$datastoreIdentifier [string]$datastoreIdentifier
) )
+1
View File
@@ -33,6 +33,7 @@ function Get-ZAVolume {
Mandatory, Mandatory,
ParameterSetName = "VpgIdentifier" ParameterSetName = "VpgIdentifier"
)] )]
[ValidateNotNullOrEmpty()]
[string]$vpgIdentifier [string]$vpgIdentifier
) )