Преглед на файлове

HUE-3681 [oozie] Fix submit coordinator in Oozie

Jenny Kim преди 9 години
родител
ревизия
db43f37a10
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      apps/oozie/src/oozie/models2.py

+ 1 - 1
apps/oozie/src/oozie/models2.py

@@ -2517,7 +2517,7 @@ class Coordinator(Job):
   def workflow(self):
     if self.document is None:
       raise PopupException(_('Cannot return workflow since document attribute is None.'))
-    wf_doc = Document2.objects.get_by_uuid(user=self.document.owner, uuid=self.uuid)
+    wf_doc = Document2.objects.get_by_uuid(user=self.document.owner, uuid=self.data['properties']['workflow'])
     return Workflow(document=wf_doc)
 
   def get_absolute_url(self):