mirror of
https://github.com/ansible/awx.git
synced 2026-02-27 07:56:06 -03:30
special case filter to show inventory id for group
This commit is contained in:
@@ -2674,6 +2674,8 @@ class ActivityStreamSerializer(BaseSerializer):
|
|||||||
fval = getattr(thisItem, field, None)
|
fval = getattr(thisItem, field, None)
|
||||||
if fval is not None:
|
if fval is not None:
|
||||||
thisItemDict[field] = fval
|
thisItemDict[field] = fval
|
||||||
|
if fk == 'group':
|
||||||
|
thisItemDict['inventory_id'] = getattr(thisItem, 'inventory_id', None)
|
||||||
summary_fields[fk].append(thisItemDict)
|
summary_fields[fk].append(thisItemDict)
|
||||||
except ObjectDoesNotExist:
|
except ObjectDoesNotExist:
|
||||||
pass
|
pass
|
||||||
|
|||||||
Reference in New Issue
Block a user