Use standard _sanitize_group_name method

pull/55115/head
s-hertel 6 years ago committed by Gonéri Le Bouder
parent af528bed80
commit 44a07cfe71

@ -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

Loading…
Cancel
Save