浏览代码

[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']

部分文件因为文件数量过多而无法显示