mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-10-02 06:23:30 -07:00
nonetype error (#60603)
This commit is contained in:
parent
09479a9fa0
commit
64e9973ae8
1 changed files with 8 additions and 7 deletions
|
@ -495,6 +495,7 @@ class InventoryModule(BaseInventoryPlugin, Constructable, Cacheable):
|
|||
# Fetch all instances
|
||||
link = self._instances % project
|
||||
resp = self.fetch_list(params, link, query)
|
||||
if 'items' in resp and resp['items']:
|
||||
for key, value in resp.get('items').items():
|
||||
if 'instances' in value:
|
||||
# Key is in format: "zones/europe-west1-b"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue