fail if type parameter is empty

pull/18777/head
Hans-Joachim Kliemeck 9 years ago committed by Matt Clay
parent 9a533f1b5f
commit 84a5a7a831

@ -94,7 +94,7 @@ $path = Get-Attr $params "path" -failifempty $true
$user = Get-Attr $params "user" -failifempty $true $user = Get-Attr $params "user" -failifempty $true
$rights = Get-Attr $params "rights" -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 $state = Get-Attr $params "state" "present" -validateSet "present","absent" -resultobj $result
$inherit = Get-Attr $params "inherit" "" $inherit = Get-Attr $params "inherit" ""

Loading…
Cancel
Save