mirror of
https://github.com/ansible/awx.git
synced 2026-05-13 12:27:37 -02:30
Merge pull request #2737 from AlanCoding/death_to_groups
Implement deprecation of groups_with_active_failures Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
@@ -1499,6 +1499,12 @@ class InventorySerializer(BaseSerializerWithVariables):
|
|||||||
'admin', 'adhoc',
|
'admin', 'adhoc',
|
||||||
{'copy': 'organization.inventory_admin'}
|
{'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:
|
class Meta:
|
||||||
model = Inventory
|
model = Inventory
|
||||||
@@ -1720,6 +1726,11 @@ class AnsibleFactsSerializer(BaseSerializer):
|
|||||||
|
|
||||||
class GroupSerializer(BaseSerializerWithVariables):
|
class GroupSerializer(BaseSerializerWithVariables):
|
||||||
capabilities_prefetch = ['inventory.admin', 'inventory.adhoc']
|
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:
|
class Meta:
|
||||||
model = Group
|
model = Group
|
||||||
|
|||||||
Reference in New Issue
Block a user