Add comment explaining -Compress

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
This commit is contained in:
Jerry Aldrich 2019-02-28 12:04:11 -08:00
parent 66a343555b
commit 22c20b7989

View file

@ -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}') {