fix: gcp_cloudtasks_queue

gcp_cloudtasks_queue was sending a "location" field in the
payload, when the resource did not have such a field.

Removing it fixes the tests.
This commit is contained in:
Yusuke Tsutsumi 2022-11-20 03:01:41 +00:00 committed by Yusuke Tsutsumi
parent d3a7287c37
commit 0e9f2a74b1
2 changed files with 1 additions and 3 deletions

View file

@ -489,7 +489,6 @@ def delete(module, link):
def resource_to_request(module): def resource_to_request(module):
request = { request = {
u'location': module.params.get('location'),
u'name': name_pattern(module.params.get('name'), module), u'name': name_pattern(module.params.get('name'), module),
u'appEngineRoutingOverride': QueueAppengineroutingoverride(module.params.get('app_engine_routing_override', {}), module).to_request(), u'appEngineRoutingOverride': QueueAppengineroutingoverride(module.params.get('app_engine_routing_override', {}), module).to_request(),
u'rateLimits': QueueRatelimits(module.params.get('rate_limits', {}), module).to_request(), u'rateLimits': QueueRatelimits(module.params.get('rate_limits', {}), module).to_request(),

View file

@ -1,2 +1 @@
cloud/gcp cloud/gcp
unsupported