Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inspec report source_location data type #807

Closed
alexpop opened this issue Jun 28, 2016 · 0 comments
Closed

inspec report source_location data type #807

alexpop opened this issue Jun 28, 2016 · 0 comments
Labels
Type: Enhancement Improves an existing feature

Comments

@alexpop
Copy link
Contributor

alexpop commented Jun 28, 2016

When generating an exec report, the source_location field seen below:

inspec exec profile.tar.gz --format json
{
  "version": "0.24.0",
  "profiles": {
    "profile": {
      "name": "profile",
      "controls": {
        "tmp-1.0": {
          "source_location": [
            "controls/example.rb",
            8
          ],

is causing ElasticSearch import error if no data mutation is done:

"status"=>400, 
"error"=>{"type"=>"mapper_parsing_exception", "reason"=>"failed to parse", "caused_by"=>{"type"=>"illegal_argument_exception", "reason"=>"mapper [summary.source_location] of different type, current_type [string], merged_type [long]}}"

This is an enhancement request to change the data type for better report consumption.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Improves an existing feature
Projects
None yet
Development

No branches or pull requests

2 participants