Implement deprecation of groups_with_active_failures

This commit is contained in:
AlanCoding 2018-11-19 08:29:46 -05:00
parent b923efad37
commit 0ed50b380a
No known key found for this signature in database
GPG Key ID: FD2C3C012A72926B

View File

@ -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