Skip to content

Commit

Permalink
fix(migrations): don't change v3 pipelines back to v2 (#228)
Browse files Browse the repository at this point in the history
* fix(migrations): don't change v3 pipelines back to v2

* Update ExecutionEngineMigration.java
  • Loading branch information
robfletcher committed May 3, 2017
1 parent b76ac46 commit 811a66b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ public class ExecutionEngineMigration implements Migration {
}

private boolean isV1(Pipeline pipeline) {
return !"v2".equals(pipeline.get("executionEngine"));
Object engine = pipeline.get("executionEngine");
return engine == null || "v1".equals(engine);
}

private void migrate(Pipeline pipeline) {
Expand Down

0 comments on commit 811a66b

Please sign in to comment.