diff --git a/galaxy.yml b/galaxy.yml index 2bd86b3..3ace173 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -9,7 +9,7 @@ namespace: google name: cloud # The version of the collection. Must be compatible with semantic versioning -version: 0.0.5 +version: 0.0.6 # The path to the Markdown (.md) readme file. This path is relative to the root of the collection readme: README.md diff --git a/plugins/doc_fragment/gcp.py b/plugins/doc_fragment/gcp.py index a733899..e92530c 100644 --- a/plugins/doc_fragment/gcp.py +++ b/plugins/doc_fragment/gcp.py @@ -3,6 +3,7 @@ # Copyright: (c) 2018, Google Inc. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import (absolute_import, division, print_function) class ModuleDocFragment(object): # GCP doc fragment. diff --git a/plugins/module_utils/gcp_utils.py b/plugins/module_utils/gcp_utils.py index 44cca39..16a467a 100644 --- a/plugins/module_utils/gcp_utils.py +++ b/plugins/module_utils/gcp_utils.py @@ -1,6 +1,8 @@ # Copyright (c), Google Inc, 2017 # Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause) +from __future__ import (absolute_import, division, print_function) + try: import requests HAS_REQUESTS = True diff --git a/plugins/modules/gcp_bigquery_table.py b/plugins/modules/gcp_bigquery_table.py index 98ca36e..e5ec2e8 100644 --- a/plugins/modules/gcp_bigquery_table.py +++ b/plugins/modules/gcp_bigquery_table.py @@ -252,7 +252,6 @@ options: - The maximum number of bad records that BigQuery can ignore when reading data . required: false - default: '0' type: int source_format: description: @@ -325,7 +324,6 @@ options: - The number of rows at the top of a Google Sheet that BigQuery will skip when reading the data. required: false - default: '0' type: int csv_options: description: @@ -366,7 +364,6 @@ options: - The number of rows at the top of a CSV file that BigQuery will skip when reading the data. required: false - default: '0' type: int bigtable_options: description: diff --git a/plugins/modules/gcp_storage_object.py b/plugins/modules/gcp_storage_object.py index 90056dd..79d6599 100644 --- a/plugins/modules/gcp_storage_object.py +++ b/plugins/modules/gcp_storage_object.py @@ -116,26 +116,26 @@ bucket: type: str cache_control: description: - - HTTP ‘Cache-Control’ header for this object + - HTTP 'Cache-Control' header for this object returned: download, upload type: str chunk_size: description: - - Get the blob’s default chunk size + - Get the blob's default chunk size returned: download, upload type: str media_link: - descrpition: + description: - The link for the media returned: download, upload type: str self_link: - descrpition: + description: - The self_link for the media. returned: download, upload type: str storage_class: - descrpition: + description: - The storage class for the object. returned: download, upload type: str @@ -283,6 +283,7 @@ def remote_file_path(module): else: return module.params["dest"] + def blob_to_dict(blob): return { 'bucket': { @@ -295,5 +296,6 @@ def blob_to_dict(blob): 'storage_class': blob.storage_class } + if __name__ == "__main__": main()