Skip to content

Commit

Permalink
Only add scope to request if not empty
Browse files Browse the repository at this point in the history
  • Loading branch information
ccaum committed Nov 30, 2016
1 parent 0024e13 commit 4df18a6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ public static class PuppetJobStepExecution extends AbstractSynchronousStepExecut
scope.put("application", step.getApplication());
}

body.put("scope", scope);
if (!scope.isEmpty()) {
body.put("scope", scope);
}
}

if (step.getConcurrency() != null) {
Expand Down

0 comments on commit 4df18a6

Please sign in to comment.