Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update gcp_compute_disk.py #284

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

GustavoVentura
Copy link

This commit solve a problem that whe have been facing when trying to create a disk from a snashot.

gcp_compute_module allow field sourceSnapshot but it's not sending to gcp api.

Now you can pass selflink or gcp_compute_snapshot object and it will be sended correctly to gcp api.

SUMMARY

Including sourceSnapshot field to the request and defining if selflink our gcp_compute_snapshot object.

Fixes old repo issue.
ansible/ansible#61635

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

gcp_compute_disk.py

ADDITIONAL INFORMATION

gcp_compute_disk module is not able to send sourceSnapshot to the gcp api, so it's impossible to create a disk from a snapshot created before.


modular-magician and others added 13 commits August 6, 2020 07:23
…nsible-collections#273)

* add source_image to google_compute_image

* add source_snapshot to google_compute_image

* PR comment changes

Signed-off-by: Modular Magician <[email protected]>
* Add new field filter to pubsub.

Fixes: hashicorp/terraform-provider-google#6727

* Fixed filter name, it was improperly set.

* add filter key to pubsub subscription unit test

* spaces not tabs!

* hardcode filter value in test

* revert remove escaped quotes

Co-authored-by: Tim O'Connell <[email protected]>
Signed-off-by: Modular Magician <[email protected]>

Co-authored-by: Tim O'Connell <[email protected]>
…llections#278)

Add enableMessageOrdering to Pub/Sub Subscription

Signed-off-by: Modular Magician <[email protected]>
* use {product}.googleapis.com endpoints

* use actual correct urls

* fix zone data source test

* fix network peering tests

* possibly fix deleting default network

Signed-off-by: Modular Magician <[email protected]>
…le-collections#280)

* [provider-yaml] - Removed instances where input and output are both true

* modified to only supply output. Following pattern from bigquerydatatransfer

Co-authored-by: Scott Suarez <[email protected]>
Signed-off-by: Modular Magician <[email protected]>

Co-authored-by: Scott Suarez <[email protected]>
* retrypolicy attribute added

* test case updated

Signed-off-by: Modular Magician <[email protected]>
…tions#283)

Co-authored-by: Cameron Thornton <[email protected]>
Signed-off-by: Modular Magician <[email protected]>

Co-authored-by: Cameron Thornton <[email protected]>
This commit solve a problem that whe have been facing when trying to create a disk from a snashot. 

gcp_compute_module allow field sourceSnapshot but it's not sending to gcp api.

Now you can pass selflink or gcp_compute_snapshot object and it will be sended correctly to gcp api.
@smemsh
Copy link

smemsh commented Feb 5, 2021

is this patch still needed? I see sourceSnapshot is now in resource_to_request() in the current collection from ansible-2.10.6

@toumorokoshi toumorokoshi added the bug Something isn't working label Nov 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants