Skip to content

Commit

Permalink
Changes w/r to review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bjwschaap committed Sep 6, 2018
1 parent 8b06148 commit 75d3eb5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions aws/resource_aws_launch_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,7 @@ func resourceAwsLaunchTemplateRead(d *schema.ResourceData, meta interface{}) err
d.Set("security_group_names", aws.StringValueSlice(ltData.SecurityGroups))
d.Set("user_data", ltData.UserData)
d.Set("vpc_security_group_ids", aws.StringValueSlice(ltData.SecurityGroupIds))
d.Set("ebs_optimized", "")

if ltData.EbsOptimized != nil {
d.Set("ebs_optimized", strconv.FormatBool(aws.BoolValue(ltData.EbsOptimized)))
Expand Down
3 changes: 2 additions & 1 deletion aws/resource_aws_launch_template_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func TestAccAWSLaunchTemplate_basic(t *testing.T) {
resource.TestCheckResourceAttr(resName, "default_version", "1"),
resource.TestCheckResourceAttr(resName, "latest_version", "1"),
resource.TestCheckResourceAttrSet(resName, "arn"),
resource.TestCheckResourceAttr(resName, "ebs_optimized", ""),
),
},
},
Expand Down Expand Up @@ -122,7 +123,7 @@ func TestAccAWSLaunchTemplate_data(t *testing.T) {
resource.TestCheckResourceAttr(resName, "block_device_mappings.#", "1"),
resource.TestCheckResourceAttr(resName, "credit_specification.#", "1"),
resource.TestCheckResourceAttrSet(resName, "disable_api_termination"),
resource.TestCheckResourceAttrSet(resName, "ebs_optimized"),
resource.TestCheckResourceAttr(resName, "ebs_optimized", "false"),
resource.TestCheckResourceAttr(resName, "elastic_gpu_specifications.#", "1"),
resource.TestCheckResourceAttr(resName, "iam_instance_profile.#", "1"),
resource.TestCheckResourceAttrSet(resName, "image_id"),
Expand Down

0 comments on commit 75d3eb5

Please sign in to comment.