diff --git a/crm/main.py b/crm/main.py index 33fbfb5de5..b8bf004484 100644 --- a/crm/main.py +++ b/crm/main.py @@ -102,11 +102,12 @@ def show_acl_resources(self): if crm_stats: for res in ["acl_group", "acl_table"]: - data.append([ - stage, bind_point, res, - crm_stats['crm_stats_' + res + "_used"], - crm_stats['crm_stats_' + res + "_available"] - ]) + if "crm_stats_" + res + "_used" in crm_stats: + data.append([ + stage, bind_point, res, + crm_stats['crm_stats_' + res + "_used"], + crm_stats['crm_stats_' + res + "_available"] + ]) click.echo() click.echo(tabulate(data, headers=header, tablefmt="simple", missingval=""))