fix: added missing zone parameter in gcp_compute_instance_template#516
fix: added missing zone parameter in gcp_compute_instance_template#516simonkey007 wants to merge 1 commit intoansible-collections:masterfrom
Conversation
|
Thanks for the PR! Ideally we would have added this field to the disk type itself (since templates are not regional), but I could imagine that'll constitute a backwards-incompatible change (For those that figured this out and fixed it already). I'll get it merged in. |
There was a problem hiding this comment.
Since compute_instance_template is now a resource that has integration testing, can you update the integration test and try it out?
Adding that zone-specific config in the test would help prevent regressions.
The test would be:
ansible-test integration gcp_compute_instance_template -vvv
|
You can ignore the failing integration test - that's a config fix that I can merge in (integration tests should not run on external contributor PRs) |
|
I added additional zone-specific tasks to |
|
Thanks for adding those! I ran the tests and it looks like it's failing? The first error was around zone not being a supported parameter: that can be fixed by ensuring that Even after that, I get: Which makes me wonder if there's still a bug in the disk type resolution? If the test can be fixed to work, I'm happy to merge. |
toumorokoshi
left a comment
There was a problem hiding this comment.
Hi! it looks like the test fails today. As noted in the other comment, if the test (and likely the code it exercises) can be fixed, happy to merge the feature.
| that: | ||
| - results['resources'] | length == 0 | ||
| #---------------------------------------------------------- | ||
| - name: create a instance template with ssd disk type |
|
I am seeing errors with this too: |
|
Even better if you specify zone you get |
SUMMARY
gcp_compute_instance_templateis missingzoneparameterISSUE TYPE
COMPONENT NAME
module
gcp_compute_instance_templateADDITIONAL INFORMATION
I was trying to create an instance template by providing
pd_ssddisk typeIt turned out that function inside module requires
zoneparameterWhen I run
ansible-playbook playbook.yamlI get this error: