Skip to content

Commit

Permalink
win_iis_webapppool: Use Get-AnsibleParam to retrieve parameter
Browse files Browse the repository at this point in the history
- Fixes #22805
  • Loading branch information
virtuald authored and abadger committed Mar 23, 2017
1 parent ee478c4 commit 78de05e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/ansible/modules/windows/win_iis_webapppool.ps1
Expand Up @@ -32,8 +32,9 @@ $state = Get-AnsibleParam -obj $params -name "state" -default "present" -validat
# Attributes parameter - Pipe separated list of attributes where
# keys and values are separated by comma (paramA:valyeA|paramB:valueB)
$attributes = @{};
If (Get-Member -InputObject $params -Name attributes) {
$params.attributes -split '\|' | foreach {
$attrs = Get-AnsibleParam -obj $params -name "attributes" -type "string" -failifempty $false
If ($attrs) {
$attrs -split '\|' | foreach {
$key, $value = $_ -split "\:"
$attributes.Add($key, $value)
}
Expand Down

0 comments on commit 78de05e

Please sign in to comment.