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:
parent
af528bed80
commit
44a07cfe71
1 changed files with 0 additions and 7 deletions
|
@ -254,10 +254,3 @@ class InventoryModule(K8sInventoryModule):
|
||||||
if path.endswith(('kubevirt.yml', 'kubevirt.yaml')):
|
if path.endswith(('kubevirt.yml', 'kubevirt.yaml')):
|
||||||
return True
|
return True
|
||||||
return False
|
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…
Reference in a new issue