diff options
author | award <award@rentpath.com> | 2014-07-10 15:26:40 -0400 |
---|---|---|
committer | award <award@rentpath.com> | 2014-07-10 15:26:40 -0400 |
commit | e470de2c98eb46d9c49e6829a6bd7998253ebfca (patch) | |
tree | 316d17ef6997a8ebcc721a2a43ee720d7a33c877 /theforeman.py | |
parent | import script (diff) | |
download | ansible-foreman-inventory-e470de2c98eb46d9c49e6829a6bd7998253ebfca.tar.gz |
Add support for child hostgroups
Diffstat (limited to 'theforeman.py')
-rwxr-xr-x | theforeman.py | 3 |
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""" |