mirror of
https://github.com/ansible/awx.git
synced 2026-03-11 06:29:31 -02:30
protect against unhandled PermissionDenied error
This commit is contained in:
@@ -2316,7 +2316,10 @@ class JobTemplateLaunch(RetrieveAPIView, GenericAPIView):
|
|||||||
always_allow_superuser = False
|
always_allow_superuser = False
|
||||||
|
|
||||||
def update_raw_data(self, data):
|
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 {}
|
extra_vars = data.pop('extra_vars', None) or {}
|
||||||
if obj:
|
if obj:
|
||||||
for p in obj.passwords_needed_to_start:
|
for p in obj.passwords_needed_to_start:
|
||||||
|
|||||||
Reference in New Issue
Block a user