inspec-gcp icon indicating copy to clipboard operation
inspec-gcp copied to clipboard

undefined method `node_config` for google_container_node_pool resource

Open pradeepbhadani opened this issue 4 years ago • 2 comments

Describe the problem

I am trying to use the example described here https://github.com/inspec/inspec-gcp/blob/main/docs/resources/google_container_node_pool.md#test-gcp-container-node-pool-machine-type-is-as-expected and it is throwing the following error:

     ×  NodePool primary-pool node_config.machine_type 
     undefined method `node_config' for #<#<Class:0x00007f2b2d3dbcb0>:0x00007f2b24fa12b0>

Possible Solution

config method exist for the resource. Updating the document resolves the issue.

pradeepbhadani avatar Oct 12 '21 21:10 pradeepbhadani

https://github.com/GoogleCloudPlatform/magic-modules/pull/5316 solves the issue.

pradeepbhadani avatar Oct 12 '21 21:10 pradeepbhadani

Hi @pradeepbhadani Magic Module has stopped support for inspec resources .You need to raise your PR directly to Inspect-gcp. Thanks

sa-progress avatar Oct 26 '21 18:10 sa-progress