From 22c20b798950b203e0d3200d9095bc3f47a30623 Mon Sep 17 00:00:00 2001 From: Jerry Aldrich Date: Thu, 28 Feb 2019 12:04:11 -0800 Subject: [PATCH] Add comment explaining `-Compress` Signed-off-by: Jerry Aldrich --- lib/resources/iis_app_pool.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/resources/iis_app_pool.rb b/lib/resources/iis_app_pool.rb index e21cdc0a8..0b80590b4 100644 --- a/lib/resources/iis_app_pool.rb +++ b/lib/resources/iis_app_pool.rb @@ -86,6 +86,9 @@ class IisAppPool < Inspec.resource(1) def iis_app_pool return @cache unless @cache.nil? + # We use `-Compress` here to avoid a bug in PowerShell + # It does not affect validity of the output, only the representation + # See: https://github.com/inspec/inspec/pull/3842 script = <<~EOH Import-Module WebAdministration If (Test-Path '#{@pool_path}') {