Skip to content

Commit

Permalink
provider/aws: touch up on aws_spot_instance
Browse files Browse the repository at this point in the history
  • Loading branch information
catsby committed Aug 31, 2015
1 parent 273d4fc commit f174587
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func resourceAwsSpotInstanceRequestCreate(d *schema.ResourceData, meta interface
Placement: instanceOpts.SpotPlacement,
SecurityGroupIds: instanceOpts.SecurityGroupIDs,
SecurityGroups: instanceOpts.SecurityGroups,
SubnetID: instanceOpts.SubnetID,
SubnetId: instanceOpts.SubnetID,
UserData: instanceOpts.UserData64,
},
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ func testAccCheckAWSSpotInstanceRequestAttributes(
func testAccCheckAWSSpotInstanceRequestAttributesVPC(
sir *ec2.SpotInstanceRequest) resource.TestCheckFunc {
return func(s *terraform.State) error {
if sir.LaunchSpecification.SubnetID == nil {
if sir.LaunchSpecification.SubnetId == nil {
return fmt.Errorf("SubnetID was not passed, but should have been for this instance to belong to a VPC")
}
return nil
Expand Down

0 comments on commit f174587

Please sign in to comment.