except:
vim_list = []
for cluster in resp:
+ logger.debug('Cluster details: {}'.format(yaml.safe_dump(cluster)))
vim_name = get_vim_name(vim_list, cluster['vim_account'])
#vim_info = '{} ({})'.format(vim_name,cluster['vim_account'])
vim_info = vim_name
op_state_details = "Helm: {}\nJuju: {}".format(
- cluster["_admin"].get("helm-chart", "-").get("operationalState", "-"),
- cluster["_admin"].get("juju-bundle", "-").get("operationalState", "-"))
+ cluster["_admin"].get("helm-chart", {}).get("operationalState", "-"),
+ cluster["_admin"].get("juju-bundle", {}).get("operationalState", "-"))
if long:
- logger.debug('Cluster details: {}'.format(yaml.safe_dump(cluster)))
project_id, project_name = get_project(project_list, cluster)
#project_info = '{} ({})'.format(project_name, project_id)
project_info = project_name