From 03cdff340d88714fdcf924fd971be525477f153d Mon Sep 17 00:00:00 2001 From: Alex Stephen Date: Thu, 7 Jun 2018 21:05:58 +0000 Subject: [PATCH] GCP Inventory Plugin scopes fix --- plugins/inventory/gcp_compute.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/plugins/inventory/gcp_compute.py b/plugins/inventory/gcp_compute.py index c395ac6..7396c5f 100644 --- a/plugins/inventory/gcp_compute.py +++ b/plugins/inventory/gcp_compute.py @@ -12,7 +12,6 @@ DOCUMENTATION = ''' - requests >= 2.18.4 - google-auth >= 1.3.0 extends_documentation_fragment: - - gcp - constructed - inventory_cache description: @@ -35,6 +34,16 @@ DOCUMENTATION = ''' hostnames should be assigned. Currently supported hostnames are 'public_ip', 'private_ip', or 'name'. default: ['public_ip', 'private_ip', 'name'] + auth_kind: + description: + - The type of credential used. + service_account_file: + description: + - The path of a Service Account JSON file if serviceaccount is selected as type. + service_account_email: + description: + - An optional service account email address if machineaccount is selected + and the user does not wish to use the default email. ''' EXAMPLES = '''