Browse Source

[oozie] Sort datasets by name to make postgres tests consistent

Erick Tryzelaar 10 years ago
parent
commit
fe7d9b1221
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apps/oozie/src/oozie/templates/editor/gen/coordinator.xml.mako

+ 1 - 1
apps/oozie/src/oozie/templates/editor/gen/coordinator.xml.mako

@@ -79,7 +79,7 @@
 
   % if coord.dataset_set.exists():
   <datasets>
-    % for dataset in coord.dataset_set.all():
+    % for dataset in coord.dataset_set.all().order_by('name'):
     <dataset name="${ dataset.name }" frequency="${ dataset.frequency }"
              initial-instance="${ dataset.start_utc }" timezone="${ dataset.timezone }">
       <uri-template>${ smart_path(dataset.uri, mapping) }</uri-template>