From 84a5a7a8318df348d81c433848a980bfc0cc9492 Mon Sep 17 00:00:00 2001 From: Hans-Joachim Kliemeck Date: Tue, 17 Nov 2015 15:36:52 +0100 Subject: [PATCH] fail if type parameter is empty --- lib/ansible/modules/extras/windows/win_acl.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/windows/win_acl.ps1 b/lib/ansible/modules/extras/windows/win_acl.ps1 index 370c2ed04ea..3d8cd48df09 100644 --- a/lib/ansible/modules/extras/windows/win_acl.ps1 +++ b/lib/ansible/modules/extras/windows/win_acl.ps1 @@ -94,7 +94,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" ""