Bug fixes for GCP modules (#51576)
This commit is contained in:
parent
7502df4435
commit
6a79468acf
5 changed files with 9 additions and 9 deletions
|
@ -789,7 +789,7 @@ def wait_for_completion(status, op_result, module):
|
|||
while status != 'DONE':
|
||||
raise_if_errors(op_result, ['error', 'errors'], module)
|
||||
time.sleep(1.0)
|
||||
op_result = fetch_resource(module, op_uri, 'sql#operation')
|
||||
op_result = fetch_resource(module, op_uri, 'sql#operation', False)
|
||||
status = navigate_hash(op_result, ['status'])
|
||||
return op_result
|
||||
|
||||
|
|
|
@ -335,7 +335,7 @@ def wait_for_completion(status, op_result, module):
|
|||
while status != 'DONE':
|
||||
raise_if_errors(op_result, ['error', 'errors'], module)
|
||||
time.sleep(1.0)
|
||||
op_result = fetch_resource(module, op_uri, 'sql#operation')
|
||||
op_result = fetch_resource(module, op_uri, 'sql#operation', False)
|
||||
status = navigate_hash(op_result, ['status'])
|
||||
return op_result
|
||||
|
||||
|
|
|
@ -1281,7 +1281,7 @@ class BucketCondition(object):
|
|||
def from_response(self):
|
||||
return remove_nones_from_dict(
|
||||
{
|
||||
u'age': self.request.get(u'ageDays'),
|
||||
u'age': self.request.get(u'age'),
|
||||
u'createdBefore': self.request.get(u'createdBefore'),
|
||||
u'isLive': self.request.get(u'isLive'),
|
||||
u'matchesStorageClass': self.request.get(u'matchesStorageClass'),
|
||||
|
|
|
@ -117,7 +117,7 @@ EXAMPLES = '''
|
|||
|
||||
- name: create a bucket access control
|
||||
gcp_storage_bucket_access_control:
|
||||
bucket: "{{ bucket }}"
|
||||
bucket: "test_object"
|
||||
entity: user-alexstephen@google.com
|
||||
role: WRITER
|
||||
project: "test_project"
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
register: bucket
|
||||
- name: delete a bucket access control
|
||||
gcp_storage_bucket_access_control:
|
||||
bucket: "{{ bucket }}"
|
||||
bucket: "{{ resource_name }}"
|
||||
entity: user-alexstephen@google.com
|
||||
role: WRITER
|
||||
project: "{{ gcp_project }}"
|
||||
|
@ -33,7 +33,7 @@
|
|||
#----------------------------------------------------------
|
||||
- name: create a bucket access control
|
||||
gcp_storage_bucket_access_control:
|
||||
bucket: "{{ bucket }}"
|
||||
bucket: "{{ resource_name }}"
|
||||
entity: user-alexstephen@google.com
|
||||
role: WRITER
|
||||
project: "{{ gcp_project }}"
|
||||
|
@ -49,7 +49,7 @@
|
|||
# ----------------------------------------------------------------------------
|
||||
- name: create a bucket access control that already exists
|
||||
gcp_storage_bucket_access_control:
|
||||
bucket: "{{ bucket }}"
|
||||
bucket: "{{ resource_name }}"
|
||||
entity: user-alexstephen@google.com
|
||||
role: WRITER
|
||||
project: "{{ gcp_project }}"
|
||||
|
@ -65,7 +65,7 @@
|
|||
#----------------------------------------------------------
|
||||
- name: delete a bucket access control
|
||||
gcp_storage_bucket_access_control:
|
||||
bucket: "{{ bucket }}"
|
||||
bucket: "{{ resource_name }}"
|
||||
entity: user-alexstephen@google.com
|
||||
role: WRITER
|
||||
project: "{{ gcp_project }}"
|
||||
|
@ -81,7 +81,7 @@
|
|||
# ----------------------------------------------------------------------------
|
||||
- name: delete a bucket access control that does not exist
|
||||
gcp_storage_bucket_access_control:
|
||||
bucket: "{{ bucket }}"
|
||||
bucket: "{{ resource_name }}"
|
||||
entity: user-alexstephen@google.com
|
||||
role: WRITER
|
||||
project: "{{ gcp_project }}"
|
||||
|
|
Loading…
Reference in a new issue