Эх сурвалжийг харах

HUE-8349 [oozie] Cant save bundle that using coordinator from examples (#710)

Ivan Dzikovsky 7 жил өмнө
parent
commit
bc78b07c8f

+ 1 - 1
apps/oozie/src/oozie/views/editor2.py

@@ -796,7 +796,7 @@ def save_bundle(request):
   if bundle_data['coordinators']:
     dependencies = Document2.objects.filter(type='oozie-coordinator2', uuid__in=[c['coordinator'] for c in bundle_data['coordinators']])
     for doc in dependencies:
-      doc.doc.get().can_read_or_exception(request.user)
+      doc._get_doc1(doc2_type='coordinator2').can_read_or_exception(request.user)
     bundle_doc.dependencies = dependencies
 
   bundle_doc1 = bundle_doc.doc.get()