inspec / inspec-aws

InSpec AWS Resource Pack https://www.inspec.io/
Other
136 stars 106 forks source link

undefined method `presence' for nil:NilClass #977

Closed uberjew666 closed 4 months ago

uberjew666 commented 11 months ago

Fresh install of inspec and inspec-bin using Ruby 3.1.2

Using inspec-aws 1.83.59 and using the initial testing module generating with

inspec init profile --platform aws my-profile

Executing with

inspec exec my-profile -t aws://

All environment variables setup correctly.

Describe the problem

This the output - this worked two days prior however no longer functions.

Profile:   AWS InSpec Profile (test)
Version:   0.1.0
Target:    aws://eu-west-1
Target ID: d7993ecd-2fd3-5904-8514-23f1031ccd74

  ↺  aws-single-vpc-exists-check: Check to see if custom VPC exists.
     ↺  undefined method `presence' for nil:NilClass
     Did you mean?  presence_in

Profile:   Amazon Web Services Resource Pack (inspec-aws)
Version:   1.83.59
Target:    aws://eu-west-1
Target ID: d7993ecd-2fd3-5904-8514-23f1031ccd74

     No tests executed.

Profile Summary: 0 successful controls, 0 control failures, 1 control skipped
Test Summary: 0 successful, 0 failures, 1 skipped
aaronlippold commented 10 months ago

This seems to be affecting most of the core resources.

aaronlippold commented 10 months ago

https://github.com/inspec/inspec-aws/pull/978

ahasunos commented 10 months ago

https://github.com/inspec/inspec-aws/pull/980

aaronlippold commented 10 months ago

This seems to be resolved with #980 and I believe can be closed.

Vasu1105 commented 4 months ago

This is fixed in #980 so closing this. Reopen if required.