upgrade a warning to error
This commit is contained in:
parent
83ae6fe410
commit
7152674f9b
|
@ -314,7 +314,7 @@ func resourceAwsElbRead(d *schema.ResourceData, meta interface{}) error {
|
|||
}
|
||||
sgId, err := sourceSGIdByName(meta, *lb.SourceSecurityGroup.GroupName, elbVpc)
|
||||
if err != nil {
|
||||
log.Printf("[WARN] Error looking up ELB Security Group ID: %s", err)
|
||||
return fmt.Errorf("[WARN] Error looking up ELB Security Group ID: %s", err)
|
||||
} else {
|
||||
d.Set("source_security_group_id", sgId)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue