1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Pass cloud parameter to get_one call (#40892)

When we switch this to pull from the CloudRegion object, we missed
passing the parameter along.
This commit is contained in:
Monty Taylor 2018-05-30 14:11:53 -05:00 committed by David Shrewsbury
parent 96ec32630e
commit d0f43bc6f8

View file

@ -191,8 +191,9 @@ def is_cache_stale(cache_file, cache_expiration_time, refresh=False):
def get_cache_settings(cloud=None):
config_files = cloud_config.CONFIG_FILES + CONFIG_FILES
config = cloud_config.OpenStackConfig(
config_files=cloud_config.CONFIG_FILES + CONFIG_FILES).get_one()
config_files=config_files).get_one(cloud=cloud)
# For inventory-wide caching
cache_expiration_time = config.get_cache_expiration_time()
cache_path = config.get_cache_path()