From 44a07cfe71f4eb7e6b4b80a847f7bfa58e9308dd Mon Sep 17 00:00:00 2001 From: s-hertel Date: Wed, 10 Apr 2019 16:54:45 -0400 Subject: [PATCH] Use standard _sanitize_group_name method --- lib/ansible/plugins/inventory/kubevirt.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lib/ansible/plugins/inventory/kubevirt.py b/lib/ansible/plugins/inventory/kubevirt.py index 3d53ecfdbaa..52e239fcd7d 100644 --- a/lib/ansible/plugins/inventory/kubevirt.py +++ b/lib/ansible/plugins/inventory/kubevirt.py @@ -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