From 934817b8f9b4fd3f1ffd6015f66b9a053c471012 Mon Sep 17 00:00:00 2001 From: James Denton Date: Wed, 11 Oct 2023 13:53:37 -0500 Subject: [PATCH] Stop ignoring hostnames without underscores The inventory management script was ignoring hostnames without underscores, which lends its roots to all LXC containers having underscores. In bare metal deployments, hosts likely won't have underscores, and new containers might even have hyphens. Group listing now works as expected. Change-Id: Ied031501bc1da4d1a3c4f9ad101aba355ecd364f --- osa_toolkit/manage.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/osa_toolkit/manage.py b/osa_toolkit/manage.py index d29d7a3aba..f491b4e3a3 100644 --- a/osa_toolkit/manage.py +++ b/osa_toolkit/manage.py @@ -120,10 +120,6 @@ def get_all_groups(inventory): containers = {} for container_name in inventory['_meta']['hostvars'].keys(): - # Skip the default group names since they're not helpful (like aio1). - if '_' not in container_name: - continue - groups = get_groups_for_container(inventory, container_name) containers[container_name] = groups