From 0ed50b380a175d6010deb9f67749aa4416322764 Mon Sep 17 00:00:00 2001 From: AlanCoding Date: Mon, 19 Nov 2018 08:29:46 -0500 Subject: [PATCH] Implement deprecation of groups_with_active_failures --- awx/api/serializers.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/awx/api/serializers.py b/awx/api/serializers.py index f0eef752d1..caa9ec593e 100644 --- a/awx/api/serializers.py +++ b/awx/api/serializers.py @@ -1499,6 +1499,12 @@ class InventorySerializer(BaseSerializerWithVariables): 'admin', 'adhoc', {'copy': 'organization.inventory_admin'} ] + groups_with_active_failures = serializers.IntegerField( + read_only=True, + min_value=0, + help_text=_('This field has been deprecated and will be removed in a future release') + ) + class Meta: model = Inventory @@ -1720,6 +1726,11 @@ class AnsibleFactsSerializer(BaseSerializer): class GroupSerializer(BaseSerializerWithVariables): capabilities_prefetch = ['inventory.admin', 'inventory.adhoc'] + groups_with_active_failures = serializers.IntegerField( + read_only=True, + min_value=0, + help_text=_('This field has been deprecated and will be removed in a future release') + ) class Meta: model = Group