fix go vet error
This commit is contained in:
parent
1a6aef0ed7
commit
b3d7bb2b39
|
@ -25,8 +25,8 @@ func resourceAwsFlowLog() *schema.Resource {
|
||||||
|
|
||||||
"log_group_name": &schema.Schema{
|
"log_group_name": &schema.Schema{
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Required: true,
|
Required: true,
|
||||||
ForceNew: true,
|
ForceNew: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
"vpc_id": &schema.Schema{
|
"vpc_id": &schema.Schema{
|
||||||
|
@ -108,7 +108,7 @@ func resourceAwsLogFlowCreate(d *schema.ResourceData, meta interface{}) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(resp.FlowLogIDs) > 1 {
|
if len(resp.FlowLogIDs) > 1 {
|
||||||
return fmt.Errorf("Error: multiple Flow Logs created for (%s), error: %s", resourceId)
|
return fmt.Errorf("Error: multiple Flow Logs created for (%s)", resourceId)
|
||||||
}
|
}
|
||||||
|
|
||||||
d.SetId(*resp.FlowLogIDs[0])
|
d.SetId(*resp.FlowLogIDs[0])
|
||||||
|
|
Loading…
Reference in New Issue