From d6429eb1e817161d24df97f486ec4190b27f0fdf Mon Sep 17 00:00:00 2001 From: Akita Noek Date: Tue, 15 Mar 2016 09:47:53 -0400 Subject: [PATCH] Active flag removal fix for .filter->all --- awx/api/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/api/views.py b/awx/api/views.py index af32ffd0a9..96c3bf396e 100644 --- a/awx/api/views.py +++ b/awx/api/views.py @@ -1637,7 +1637,7 @@ class InventoryScriptView(RetrieveAPIView): group_children.append(from_group_name) # Now use in-memory maps to build up group info. - for group in obj.groups: + for group in obj.groups.all(): group_info = OrderedDict() group_info['hosts'] = group_hosts_map.get(group.id, []) group_info['children'] = group_children_map.get(group.id, [])