Skip to content

Commit

Permalink
fix(6430): Adding missing block device mappings for new launch templa…
Browse files Browse the repository at this point in the history
…tes (backport #5370) (#5372)

* fix(6430): Adding missing block device mappings for new launch templates (#5370)

spinnaker/spinnaker#6430

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit 07186a0)

# Conflicts:
#	clouddriver-aws/src/main/groovy/com/netflix/spinnaker/clouddriver/aws/services/LaunchTemplateService.java

* chore(ci): fix badly formatted merge

* chore(ci): fix merge fix (#5387)

Co-authored-by: Prathibha Datta Kumar <kprathib@amazon.com>
Co-authored-by: Cameron Motevasselani <cameron@armory.io>
  • Loading branch information
3 people committed Jun 14, 2021
1 parent 026481a commit 89b5c7b
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,11 @@ private RequestLaunchTemplateData buildLaunchTemplateData(
.withGroups(asgConfig.getSecurityGroups())
.withDeviceIndex(0));

// block device mappings
if (asgConfig.getBlockDevices() != null && !asgConfig.getBlockDevices().isEmpty()) {
request.setBlockDeviceMappings(buildDeviceMapping(asgConfig.getBlockDevices()));
}

return request;
}

Expand Down

0 comments on commit 89b5c7b

Please sign in to comment.