summaryrefslogtreecommitdiff
path: root/windows/win_acl_inheritance.ps1
diff options
context:
space:
mode:
authorHans-Joachim Kliemeck <git@kliemeck.de>2016-03-22 09:07:09 +0100
committerHans-Joachim Kliemeck <git@kliemeck.de>2016-03-22 09:07:09 +0100
commit2ce5b4c5261f1559a55bff0b35d107d52d83d01a (patch)
treeb5a00d2650e689081d0f2e80b40c79253165a991 /windows/win_acl_inheritance.ps1
parentd2959fb7ed7c565c036e2a25503a8ba952d763f1 (diff)
downloadansible-modules-extras-2ce5b4c5261f1559a55bff0b35d107d52d83d01a.tar.gz
suggestion by @nitzmahone to not use Get-Attr in combination with ConvertTo-Bool, improved documentation regarding organize
Diffstat (limited to 'windows/win_acl_inheritance.ps1')
-rw-r--r--windows/win_acl_inheritance.ps13
1 files changed, 2 insertions, 1 deletions
diff --git a/windows/win_acl_inheritance.ps1 b/windows/win_acl_inheritance.ps1
index 0d808bb8..1933a3a5 100644
--- a/windows/win_acl_inheritance.ps1
+++ b/windows/win_acl_inheritance.ps1
@@ -27,7 +27,8 @@ Set-Attr $result "changed" $false;
$path = Get-Attr $params "path" -failifempty $true
$state = Get-Attr $params "state" "absent" -validateSet "present","absent" -resultobj $result
-$reorganize = Get-Attr $params "reorganize" "no" -validateSet "no","yes" -resultobj $result | ConvertTo-Bool
+$reorganize = Get-Attr $params "reorganize" "no" -validateSet "no","yes" -resultobj $result
+$reorganize = $reorganize | ConvertTo-Bool
If (-Not (Test-Path -Path $path)) {
Fail-Json $result "$path file or directory does not exist on the host"