mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
2
changelogs/fragments/openstack_inventory_fix.yml
Normal file
2
changelogs/fragments/openstack_inventory_fix.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- allow using openstack inventory plugin w/o a cache
|
||||
@@ -196,7 +196,8 @@ class InventoryModule(BaseInventoryPlugin, Constructable, Cacheable):
|
||||
source_data = cloud_inventory.list_hosts(
|
||||
expand=expand_hostvars, fail_on_cloud_config=fail_on_errors)
|
||||
|
||||
self.cache.set(cache_key, source_data)
|
||||
if self.cache is not None:
|
||||
self.cache.set(cache_key, source_data)
|
||||
|
||||
self._populate_from_source(source_data)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user