inspec / inspec-aws

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

CHEF-8423 : load ActiveSupport core_ext methods #980

Closed sathish-progress closed 1 year ago

sathish-progress commented 1 year ago

calling .presence on ruby objects fail with NoMethodError

Description

Please describe what this change achieves. Ensure you have read the Contributing to InSpec AWS document before submitting.

requiring the core_ext module of ActiveSupport makes sure the methods are loaded before they are called. In this case, it is used to make .presence available

Issues Resolved

List any existing issues this PR resolves, or any Discourse or StackOverflow discussion that's relevant https://buildkite.com/chef-oss/inspec-inspec-aws-main-verify/builds/5677#018bbf84-1317-46cb-b695-74a947e786b4

Check List

Please fill box or appropriate ([x]) or mark N/A.

netlify[bot] commented 1 year ago

Deploy Preview for inspec-aws canceled.

Name Link
Latest commit 6818848b1ca659f81c7bb3d455ce019f05fc7330
Latest deploy log https://app.netlify.com/sites/inspec-aws/deploys/6551e42299f13e00083122e9
aaronlippold commented 1 year ago

Ok. I'll add this to my local or and remove the if and retest