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