Use OCC to create clouds in inventory

The inventory module has lagged behind just a smidge.

Change-Id: I9207128c82b0f5f48b012231178cc835906426d5
This commit is contained in:
Monty Taylor 2015-10-21 06:11:59 +09:00
parent 509dc514ea
commit da2bfd7a91

View File

@ -26,14 +26,10 @@ class OpenStackInventory(object):
config_files=os_client_config.config.CONFIG_FILES + config_files)
self.clouds = [
shade.OpenStackCloud(
cloud=f.name,
cache_interval=config.get_cache_max_age(),
cache_class=config.get_cache_class(),
cache_arguments=config.get_cache_arguments(),
**f.config)
for f in config.get_all_clouds()
]
shade.OpenStackCloud(cloud_config=cloud_config)
for cloud_config in config.get_all_clouds()
]
if private:
for cloud in self.clouds:
cloud.private = True