summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraward <award@rentpath.com>2014-07-10 15:26:40 -0400
committeraward <award@rentpath.com>2014-07-10 15:26:40 -0400
commite470de2c98eb46d9c49e6829a6bd7998253ebfca (patch)
tree316d17ef6997a8ebcc721a2a43ee720d7a33c877
parentimport script (diff)
downloadansible-foreman-inventory-e470de2c98eb46d9c49e6829a6bd7998253ebfca.tar.gz
Add support for child hostgroups
-rwxr-xr-xtheforeman.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/theforeman.py b/theforeman.py
index b9472d2..809bf3f 100755
--- a/theforeman.py
+++ b/theforeman.py
@@ -207,8 +207,7 @@ They must be specified via ini file.'''
if group is None:
return group
- group_name = (re.sub("[^A-Za-z0-9\-]", "-", group.get('name')).lower())
- return group_name
+ return group.get('label')
def _get_environment_from_id(self, env_id):
"""Get environment name"""