Add Missing default param for caching_mode (#22753)

Add Missing default param for caching_mode and Usage of new Ansible-Param Commant with default Value
pull/22757/head
David Baumann 8 years ago committed by Matt Davis
parent 4749b75090
commit 634d6894e3

@ -138,7 +138,7 @@ Try {
$permissionFull = Get-AnsibleParam -obj $params -name "full" -type "str" -default "" | NormalizeAccounts
$permissionDeny = Get-AnsibleParam -obj $params -name "deny" -type "str" -default "" | NormalizeAccounts
$cachingMode = Get-Attr $params "caching_mode" "" -validateSet "BranchCache","Documents","Manual","None","Programs", "Unkown"
$cachingMode = Get-AnsibleParam -obj $params -name "caching_mode" -type "str" -default "None" -validateSet "BranchCache","Documents","Manual","None","Programs", "Unkown"
If (-Not (Test-Path -Path $path)) {
Fail-Json $result "$path directory does not exist on the host"

@ -96,6 +96,7 @@ options:
- Programs
- Unknown
required: no
default: "None"
author: Hans-Joachim Kliemeck (@h0nIg), David Baumann (@daBONDi)
'''

Loading…
Cancel
Save