Add Parameter Validation

This commit is contained in:
Wes Carroll committed 2019-06-09 12:18:11 -04:00
1 parent 72cbe0eb29
commit 89bfe61a1b
2 files changed
+2

No files matched your search

@@ -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
)