Skip to content
Snippets Groups Projects
Commit d7e7ac73 authored by garciadeblas's avatar garciadeblas
Browse files

Fix wrong warning in cluster-list if no clusters and no VIMs


Change-Id: I91110bed74adc17f46d5ba425cf88661bce8a66e
Signed-off-by: default avatargarciadeblas <gerardo.garciadeblas@telefonica.com>
parent 3ac6ed94
No related branches found
No related tags found
No related merge requests found
Pipeline #18564 passed with stage
in 3 minutes and 28 seconds
......@@ -140,7 +140,7 @@ class Cluster(GenericOSMAPIObject):
cluster_list = self.list(filter)
vim_list = self._client.vim.list()
self._logger.debug(f"VIM list: {vim_list}")
if not vim_list:
if cluster_list and not vim_list:
self._logger.warning(
"Could not complete cluster info with VIM account info"
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment