mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-27 04:41:26 -07:00
Put in documented default for gcp_compute filters (#50025)
This commit is contained in:
parent
0ce9593986
commit
baf59ccaac
3 changed files with 6 additions and 1 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
Add a link
Reference in a new issue