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

[oozie] Add credentials default to the examples

Romain Rigaux 10 жил өмнө
parent
commit
2672423cb0

Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 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']

Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно