mirror of
https://github.com/ansible/awx.git
synced 2026-03-21 10:57:36 -02:30
fix api browser endpoint name
* Endpoint exposes all jobs associated with an Instance. This is what we want. Align the endpoint description with this behavior by removing the word running.
This commit is contained in:
@@ -4505,7 +4505,6 @@ class InstanceSerializer(BaseSerializer):
|
|||||||
|
|
||||||
consumed_capacity = serializers.SerializerMethodField()
|
consumed_capacity = serializers.SerializerMethodField()
|
||||||
percent_capacity_remaining = serializers.SerializerMethodField()
|
percent_capacity_remaining = serializers.SerializerMethodField()
|
||||||
jobs_running = serializers.SerializerMethodField()
|
|
||||||
jobs_running = serializers.IntegerField(
|
jobs_running = serializers.IntegerField(
|
||||||
help_text=_('Count of jobs in the running or waiting state that '
|
help_text=_('Count of jobs in the running or waiting state that '
|
||||||
'are targeted for this instance'),
|
'are targeted for this instance'),
|
||||||
|
|||||||
@@ -631,7 +631,7 @@ class InstanceDetail(RetrieveUpdateAPIView):
|
|||||||
|
|
||||||
class InstanceUnifiedJobsList(SubListAPIView):
|
class InstanceUnifiedJobsList(SubListAPIView):
|
||||||
|
|
||||||
view_name = _("Instance Running Jobs")
|
view_name = _("Instance Jobs")
|
||||||
model = UnifiedJob
|
model = UnifiedJob
|
||||||
serializer_class = UnifiedJobSerializer
|
serializer_class = UnifiedJobSerializer
|
||||||
parent_model = Instance
|
parent_model = Instance
|
||||||
|
|||||||
Reference in New Issue
Block a user