Merge pull request #1116 from marcind/devel

Fix IIS module null refs when removing objects on a server running PowerShell 4
This commit is contained in:
Matt Davis 2016-03-10 22:37:36 +00:00
commit 445daf372d

View file

@ -101,6 +101,8 @@ try {
# Result
$pool = Get-Item IIS:\AppPools\$name
if ($pool)
{
$result.info = @{
name = $pool.Name
state = $pool.State
@ -108,5 +110,6 @@ $result.info = @{
};
$pool.Attributes | ForEach { $result.info.attributes.Add($_.Name, $_.Value)};
}
Exit-Json $result