provider/aws: touch up on aws_spot_instance

This commit is contained in:
Clint Shryock 2015-08-31 09:34:34 -05:00
parent 273d4fc98d
commit f174587291
2 changed files with 2 additions and 2 deletions

View File

@ -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,
},
}

View File

@ -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