mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-04-06 19:00:27 -07:00
Put in documented default for gcp_compute filters (#50025)
This commit is contained in:
parent
1e25d0e889
commit
72ab605225
1 changed files with 4 additions and 0 deletions
|
@ -337,6 +337,10 @@ class InventoryModule(BaseInventoryPlugin, Constructable, Cacheable):
|
|||
if not isinstance(config_data['projects'], list):
|
||||
raise AnsibleParserError("Projects must be a list in GCP inventory YAML files")
|
||||
|
||||
# add in documented defaults
|
||||
if 'filters' not in config_data:
|
||||
config_data['filters'] = None
|
||||
|
||||
projects = config_data['projects']
|
||||
zones = config_data.get('zones')
|
||||
config_data['scopes'] = ['https://www.googleapis.com/auth/compute']
|
||||
|
|
Loading…
Add table
Reference in a new issue