Skip to content

Commit

Permalink
fix(core): Recast parameter strategy check to boolean (#1247)
Browse files Browse the repository at this point in the history
  • Loading branch information
lwander committed Mar 26, 2017
1 parent ee4ea0a commit 5a68db8
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -295,7 +295,11 @@ public void resolveStrategyParams() {
if (execution instanceof Pipeline) {
Pipeline pipeline = (Pipeline) execution;
Map<String, Object> parameters = (Map<String, Object>) pipeline.getTrigger().get("parameters");
boolean strategy = false;
if (parameters != null && parameters.get("strategy") != null) {
strategy = (boolean) parameters.get("strategy");
}
if (strategy) {
context.put("cloudProvider", parameters.get("cloudProvider"));
context.put("cluster", parameters.get("cluster"));
context.put("credentials", parameters.get("credentials"));
Expand Down

0 comments on commit 5a68db8

Please sign in to comment.