mirror of
https://github.com/ansible/awx.git
synced 2026-05-06 08:57:35 -02:30
add workflow jobs to UJ options
This commit is contained in:
@@ -250,6 +250,7 @@ class BaseSerializer(serializers.ModelSerializer):
|
|||||||
'project_update': _('SCM Update'),
|
'project_update': _('SCM Update'),
|
||||||
'inventory_update': _('Inventory Sync'),
|
'inventory_update': _('Inventory Sync'),
|
||||||
'system_job': _('Management Job'),
|
'system_job': _('Management Job'),
|
||||||
|
'workflow_job': _('Workflow Job'),
|
||||||
}
|
}
|
||||||
choices = []
|
choices = []
|
||||||
for t in self.get_types():
|
for t in self.get_types():
|
||||||
@@ -666,7 +667,7 @@ class UnifiedJobListSerializer(UnifiedJobSerializer):
|
|||||||
|
|
||||||
def get_types(self):
|
def get_types(self):
|
||||||
if type(self) is UnifiedJobListSerializer:
|
if type(self) is UnifiedJobListSerializer:
|
||||||
return ['project_update', 'inventory_update', 'job', 'ad_hoc_command', 'system_job']
|
return ['project_update', 'inventory_update', 'job', 'ad_hoc_command', 'system_job', 'workflow_job']
|
||||||
else:
|
else:
|
||||||
return super(UnifiedJobListSerializer, self).get_types()
|
return super(UnifiedJobListSerializer, self).get_types()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user