From 8e557dfc45b731cc3dd3771ab3255a9a53fbe518 Mon Sep 17 00:00:00 2001 From: Corwin Brown Date: Thu, 15 Oct 2015 18:02:21 -0500 Subject: [PATCH] Made win_iis_webapppool Strict Compliant --- lib/ansible/modules/extras/windows/win_iis_webapppool.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/windows/win_iis_webapppool.ps1 b/lib/ansible/modules/extras/windows/win_iis_webapppool.ps1 index 2ed369e4a3f..6dcf7ec192c 100644 --- a/lib/ansible/modules/extras/windows/win_iis_webapppool.ps1 +++ b/lib/ansible/modules/extras/windows/win_iis_webapppool.ps1 @@ -39,7 +39,7 @@ If (($state -Ne $FALSE) -And ($state -NotIn $valid_states)) { # Attributes parameter - Pipe separated list of attributes where # keys and values are separated by comma (paramA:valyeA|paramB:valueB) $attributes = @{}; -If ($params.attributes) { +If (Get-Member -InputObject $params -Name attributes) { $params.attributes -split '\|' | foreach { $key, $value = $_ -split "\:"; $attributes.Add($key, $value);