fail if type parameter is empty
This commit is contained in:
parent
84a8902b48
commit
0688522eb7
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ $path = Get-Attr $params "path" -failifempty $true
|
|||
$user = Get-Attr $params "user" -failifempty $true
|
||||
$rights = Get-Attr $params "rights" -failifempty $true
|
||||
|
||||
$type = Get-Attr $params "type" -validateSet "allow","deny" -resultobj $result
|
||||
$type = Get-Attr $params "type" -failifempty $true -validateSet "allow","deny" -resultobj $result
|
||||
$state = Get-Attr $params "state" "present" -validateSet "present","absent" -resultobj $result
|
||||
|
||||
$inherit = Get-Attr $params "inherit" ""
|
||||
|
|
Loading…
Reference in a new issue