Bladeren bron

HUE-3681 [oozie] Fix submit coordinator in Oozie

Jenny Kim 9 jaren geleden
bovenliggende
commit
db43f37
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  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):