Skip to content

Commit

Permalink
fix(titus): fix run job stage for titus so all fields in the stage ge…
Browse files Browse the repository at this point in the history
…t sent to clouddriver
  • Loading branch information
tomaslin committed Apr 14, 2017
1 parent 60a5007 commit e2a7ee0
Showing 1 changed file with 2 additions and 4 deletions.
Expand Up @@ -31,13 +31,11 @@ class TitusJobRunner implements JobRunner {
@Override
List<Map> getOperations(Stage stage) {
def operation = [:]

operation.putAll(stage.context)
if (stage.context.containsKey("cluster")) {
operation.putAll(stage.context.cluster as Map)
operation.put('credentials', stage.context.credentials)
} else {
operation.putAll(stage.context)
}
operation.put('cloudProvider', cloudProvider)

return [[(OPERATION): operation]]
}
Expand Down

0 comments on commit e2a7ee0

Please sign in to comment.