mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-03 09:13:12 +00:00
Use standard _sanitize_group_name method
This commit is contained in:
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
|
||||
|
||||
Reference in New Issue
Block a user