mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-04-18 17:01:22 -07:00
GCP Inventory Plugin scopes fix
This commit is contained in:
parent
6e0d1813a6
commit
fdf16191cd
2 changed files with 13 additions and 1 deletions
|
@ -106,6 +106,9 @@ class GcpSession(object):
|
|||
if not HAS_GOOGLE_LIBRARIES:
|
||||
self.module.fail_json(msg="Please install the google-auth library")
|
||||
|
||||
if 'auth_kind' not in self.module.params:
|
||||
self.module.fail_json(msg="Auth kind parameter is missing")
|
||||
|
||||
if self.module.params.get('service_account_email') is not None and self.module.params['auth_kind'] != 'machineaccount':
|
||||
self.module.fail_json(
|
||||
msg="Service Acccount Email only works with Machine Account-based authentication"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue