inspec-gcp
inspec-gcp copied to clipboard
undefined method `node_config` for google_container_node_pool resource
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.
https://github.com/GoogleCloudPlatform/magic-modules/pull/5316 solves the issue.
Hi @pradeepbhadani Magic Module has stopped support for inspec resources .You need to raise your PR directly to Inspect-gcp. Thanks