Merge pull request #1114 from blakfeld/fix_win_iis_webapppool

Made win_iis_webapppool Strict Compliant
This commit is contained in:
James Cammarata 2015-10-27 14:33:20 -04:00
commit 949b124e05

View file

@ -39,7 +39,7 @@ If (($state -Ne $FALSE) -And ($state -NotIn $valid_states)) {
# Attributes parameter - Pipe separated list of attributes where # Attributes parameter - Pipe separated list of attributes where
# keys and values are separated by comma (paramA:valyeA|paramB:valueB) # keys and values are separated by comma (paramA:valyeA|paramB:valueB)
$attributes = @{}; $attributes = @{};
If ($params.attributes) { If (Get-Member -InputObject $params -Name attributes) {
$params.attributes -split '\|' | foreach { $params.attributes -split '\|' | foreach {
$key, $value = $_ -split "\:"; $key, $value = $_ -split "\:";
$attributes.Add($key, $value); $attributes.Add($key, $value);