From 66791c3c307c96e6c9955db13de5e679c4444840 Mon Sep 17 00:00:00 2001 From: Alex Stephen Date: Wed, 23 Jan 2019 13:45:08 -0800 Subject: [PATCH] Bug fixes for GCP modules (as of 2019-01-22T12:43:52-08:00) (#51248) --- plugins/modules/gcp_storage_object.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/plugins/modules/gcp_storage_object.py b/plugins/modules/gcp_storage_object.py index ee110a8..f589a36 100644 --- a/plugins/modules/gcp_storage_object.py +++ b/plugins/modules/gcp_storage_object.py @@ -18,15 +18,14 @@ # ---------------------------------------------------------------------------- from __future__ import absolute_import, division, print_function + __metaclass__ = type ################################################################################ # Documentation ################################################################################ -ANSIBLE_METADATA = {'metadata_version': '1.1', - 'status': ["preview"], - 'supported_by': 'community'} +ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ["preview"], 'supported_by': 'community'} DOCUMENTATION = ''' --- @@ -145,7 +144,7 @@ def main(): overwrite=dict(type='bool'), src=dict(type='path'), dest=dict(type='path'), - bucket=dict(type='str') + bucket=dict(type='str'), ) ) @@ -277,7 +276,7 @@ def object_headers(module): return { "name": module.params['dest'], "Content-Type": mimetypes.guess_type(module.params['src'])[0], - "Content-Length": str(os.path.getsize(module.params['src'])) + "Content-Length": str(os.path.getsize(module.params['src'])), }