mirror of
https://github.com/ansible/awx.git
synced 2026-03-03 09:48:51 -03:30
deprecate jobs creation via sublist
This commit is contained in:
@@ -3476,6 +3476,13 @@ class JobTemplateJobsList(SubListCreateAPIView):
|
|||||||
relationship = 'jobs'
|
relationship = 'jobs'
|
||||||
parent_key = 'job_template'
|
parent_key = 'job_template'
|
||||||
|
|
||||||
|
@property
|
||||||
|
def allowed_methods(self):
|
||||||
|
methods = super(JobTemplateJobsList, self).allowed_methods
|
||||||
|
if get_request_version(getattr(self, 'request', None)) > 1:
|
||||||
|
methods.remove('POST')
|
||||||
|
return methods
|
||||||
|
|
||||||
|
|
||||||
class JobTemplateInstanceGroupsList(SubListAttachDetachAPIView):
|
class JobTemplateInstanceGroupsList(SubListAttachDetachAPIView):
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user