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

[oozie] Add credentials default to the examples

Romain Rigaux преди 10 години
родител
ревизия
2672423cb0
променени са 2 файла, в които са добавени 1 реда и са изтрити 3 реда
  1. 0 0
      apps/oozie/src/oozie/fixtures/initial_oozie_examples.json
  2. 1 3
      apps/oozie/src/oozie/models2.py

Файловите разлики са ограничени, защото са твърде много
+ 0 - 0
apps/oozie/src/oozie/fixtures/initial_oozie_examples.json


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

@@ -347,10 +347,8 @@ class Node():
       self.data['properties']['files'] = []
     if 'archives' not in self.data['properties']:
       self.data['properties']['archives'] = []
-    if 'sla_enabled' not in self.data['properties']:
-      self.data['properties']['sla_enabled'] = False
     if 'sla' not in self.data['properties']:
-      self.data['properties']['sla'] = []
+      self.data['properties']['sla'] = Workflow.SLA_DEFAULT
 
   def get_template_name(self):
     return 'editor2/gen/workflow-%s.xml.mako' % self.data['type']

Някои файлове не бяха показани, защото твърде много файлове са промени