Change-Id: I99b111f575033b402d995b17d728330d1cedd9e8
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
# Complete cluster info with vim_account name and vim_type
vim_list = self._client.vim.list()
self._logger.debug(f"VIM list: {vim_list}")
+ if not vim_list:
+ self._logger.warning(
+ "Could not complete cluster info with VIM account info"
+ )
for item in cluster_list1:
vim_id = item["vim_account"]
vim_name, vim_type = next(
for vim_item in vim_list
if vim_item["_id"] == vim_id or vim_item["name"] == vim_id
),
- None,
+ (None, None),
)
item["vim_account"] = f"{vim_name} ({vim_type})"
return cluster_list1