Skip to content

Commit 51404db

Browse files
Change dashes to underscores since Ansible will look to enforce in 2.10+
1 parent 26f5b07 commit 51404db

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

plugins/inventory/nb_inventory.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,7 @@ def add_host_to_groups(self, host, hostname):
606606
continue
607607

608608
for sub_group in sub_groups:
609+
sub_group = sub_group.replace('-', '_')
609610
if self.group_names_raw:
610611
group_name = sub_group
611612
else:

0 commit comments

Comments
 (0)