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

Merge pull request #211 from orenmazor/master

[oozie] An untriggered Oozie bundle breaks its dashboard page
Romain Rigaux преди 10 години
родител
ревизия
42d3f82
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      desktop/libs/liboozie/src/liboozie/types.py

+ 3 - 0
desktop/libs/liboozie/src/liboozie/types.py

@@ -274,6 +274,9 @@ class BundleAction(Action):
 
   def get_progress(self):
     """How much more time before the next action."""
+    if self.lastAction is None:
+      return 0
+      
     next = mktime(parse_timestamp(self.lastAction))
     start = mktime(parse_timestamp(self.startTime))
     end = mktime(parse_timestamp(self.endTime))