mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 18:40:01 -03:30
protect against unhandled PermissionDenied error
This commit is contained in:
parent
54980d09e3
commit
dca70f4bd1
@ -2316,7 +2316,10 @@ class JobTemplateLaunch(RetrieveAPIView, GenericAPIView):
|
||||
always_allow_superuser = False
|
||||
|
||||
def update_raw_data(self, data):
|
||||
obj = self.get_object()
|
||||
try:
|
||||
obj = self.get_object()
|
||||
except PermissionDenied:
|
||||
return data
|
||||
extra_vars = data.pop('extra_vars', None) or {}
|
||||
if obj:
|
||||
for p in obj.passwords_needed_to_start:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user