Skip to content

formatting error when executing profile #34

@vjeffrey

Description

@vjeffrey

Describe the bug
In some recent testing I discovered this profile is failing inspec exec with some formatting issues.

Expected behavior
Can execute this profile with inspec exec and send the results to Automate

Actual behavior

         2: from C:/opscode/inspec/embedded/lib/ruby/gems/2.6.0/gems/inspec-4.3.2/lib/inspec/reporters/automate.rb:41:in
 `send_report'
         1: from C:/opscode/inspec/embedded/lib/ruby/gems/2.6.0/gems/inspec-4.3.2/lib/inspec/reporters/automate.rb:41:in
 `to_json'
C:/opscode/inspec/embedded/lib/ruby/gems/2.6.0/gems/inspec-4.3.2/lib/inspec/reporters/automate.rb:41:in `encode': "\xC3"
 from ASCII-8BIT to UTF-8 (Encoding::UndefinedConversionError)

OS / Environment
windows_server_2016

Inspec Version
inspec 3.9.0

Baseline Version
master

Additional context
chef/automate#296

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions