From e5ec5c97262a98141a31e870286aff9bf38c79af Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Wed, 18 May 2016 10:21:49 -0400 Subject: [PATCH] Change prefix for imported sattelite groups --- awx/plugins/inventory/foreman.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/awx/plugins/inventory/foreman.py b/awx/plugins/inventory/foreman.py index bece7c7623..57367b1e77 100644 --- a/awx/plugins/inventory/foreman.py +++ b/awx/plugins/inventory/foreman.py @@ -1,4 +1,7 @@ #!/usr/bin/python +# +# NOTE FOR TOWER: change foreman_ to sattelite_ for the group prefix +# # vim: set fileencoding=utf-8 : # # Copyright (C) 2016 Guido Günther @@ -205,7 +208,7 @@ class ForemanInventory(object): for group in ['hostgroup', 'location', 'organization']: val = host.get('%s_name' % group) if val: - safe_key = self.to_safe('foreman_%s_%s' % (group, val.lower())) + safe_key = self.to_safe('satellite_%s_%s' % (group, val.lower())) self.push(self.inventory, safe_key, dns_name) params = self._resolve_params(host)