Skip to content

Commit

Permalink
fix(kubernetes/rollback) Pass cloudProvider to tasks so it doesn't de…
Browse files Browse the repository at this point in the history
…fault to aws (spinnaker#1810)
  • Loading branch information
andrewbackes authored and Lars Wander committed Nov 17, 2017
1 parent 52823d6 commit 500f9ed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,9 @@ class ExplicitRollback implements Rollback {
Stage buildApplySourceServerGroupCapacityStage(Stage parentStage,
ResizeStrategy.Source source) {
Map applySourceServerGroupCapacityContext = [
credentials: source.credentials,
target : [
credentials : source.credentials,
cloudProvider: source.cloudProvider,
target : [
asgName : restoreServerGroupName,
serverGroupName: restoreServerGroupName,
region : source.region,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ class ExplicitRollbackSpec extends Specification {
serverGroupName: "servergroup-v002"
]
afterStages[4].context == [
target : [
cloudProvider: "aws",
target : [
asgName : "servergroup-v001",
serverGroupName: "servergroup-v001",
region : "us-west-1",
Expand Down

0 comments on commit 500f9ed

Please sign in to comment.