1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Use standard _sanitize_group_name method

This commit is contained in:
s-hertel 2019-04-10 16:54:45 -04:00 committed by Gonéri Le Bouder
parent af528bed80
commit 44a07cfe71

View file

@ -254,10 +254,3 @@ class InventoryModule(K8sInventoryModule):
if path.endswith(('kubevirt.yml', 'kubevirt.yaml')):
return True
return False
def _sanitize_group_name(self, name):
""" Replace unsupported charactes in group name by underscore character """
name = name.replace('/', '_')
name = name.replace('.', '_')
name = name.replace('-', '_')
return name