Skip to content

inspec-gcp : failure when using gem nori:2.7.0  #596

@vedisquori

Description

@vedisquori

Hi, i'm a bit new to inspec and inspec-gcp but there is what I found
From two days ago, there was a new release of gem nori 2.7.0, something changed the default behavior of inspec-gcp.

Describe the problem

When launching bundle exec kitchen verify, there is an error which says : undefined method '[]' for nil:NilClass
I tried directly with bundle exec inspec exec . -t gcp:// same thing, but it goes a bit deeper into the error :
Input 'my_input' does not have a value. Skipping test.libraries/google_compute_target_http_proxy.rb:56:in 'to_s': undefined method `[]' for nil:NilClass (NoMethodError)

When forcing nori:2.6.0 in gemfile, all goes according to plan, no error and inspec-gcp works well.

Possible Solution

Forcing usage of nori:2.6.0 or wait for a fix in next nori version ?

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