mirror of
https://github.com/ansible/awx.git
synced 2024-11-02 09:51:09 +03:00
fix ordereddict programming error
This commit is contained in:
parent
06f68bc466
commit
db6f50b9f4
@ -2269,7 +2269,7 @@ class JobLaunchSerializer(BaseSerializer):
|
||||
# Special prohibited cases for scan jobs
|
||||
if 'job_type' in data and obj.ask_job_type_on_launch:
|
||||
if ((obj.job_type==PERM_INVENTORY_SCAN and not data['job_type']==PERM_INVENTORY_SCAN) or
|
||||
(data.job_type==PERM_INVENTORY_SCAN and not obj['job_type']==PERM_INVENTORY_SCAN)):
|
||||
(data['job_type']==PERM_INVENTORY_SCAN and not obj['job_type']==PERM_INVENTORY_SCAN)):
|
||||
errors['job_type'] = 'Can not override job_type to or from a scan job.'
|
||||
if (obj.job_type==PERM_INVENTORY_SCAN and ('inventory' in data) and obj.ask_inventory_on_launch and
|
||||
obj.inventory != data['inventory']):
|
||||
|
Loading…
Reference in New Issue
Block a user