mirror of
https://github.com/inspec/inspec
synced 2024-11-26 14:40:26 +00:00
Add comment explaining -Compress
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
This commit is contained in:
parent
66a343555b
commit
22c20b7989
1 changed files with 3 additions and 0 deletions
|
@ -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}') {
|
||||
|
|
Loading…
Reference in a new issue