openstack-ansible/osa_toolkit
Dmitriy Rabotyagov 8d46ed8842 Allow env.d to contain underscores in physical_skel
At the moment our dynamic_inventory does have assumption that group names
defined in env.d will not contain underscores, except when it's ending
with `_hosts` or `_containers` since inventory script uses split on `_` and taking
the last argument. So in cases when underscore was used elsewhere in the
group name it will result in unexpected behaviour.

Instead of this approach we now use regexp which replaces the last octet separated with underscore with intended suffix to preserve
rest behaviour.

Change-Id: Id9ba56292972b8b52b4786c78684f2d6f289d88a
2024-03-05 09:17:44 +00:00
..
__init__.py Restructure lib directory to install via pip 2017-03-30 10:19:01 -04:00
dictutils.py Improve compatibiliity with Python 3 2017-06-06 10:44:13 -04:00
filesystem.py Deprecate openstack_hostnames_ips 2022-07-28 11:48:27 +02:00
generate.py Allow env.d to contain underscores in physical_skel 2024-03-05 09:17:44 +00:00
ip.py Rename black/white list variables 2021-06-18 08:35:55 +00:00
manage.py Stop ignoring hostnames without underscores 2023-10-11 13:58:11 -05:00
tools.py Restore dynamic_inventory unit testing 2023-01-11 10:14:43 +00:00