provider/aws: Guard against empty responses from Lambda Permissions

pull/5838/head
clint shryock 10 years ago
parent 17ce605819
commit 01f868d3e6

@ -121,7 +121,11 @@ func resourceAwsLambdaPermissionCreate(d *schema.ResourceData, meta interface{})
return err
}
log.Printf("[DEBUG] Created new Lambda permission: %s", *out.Statement)
if out != nil && out.Statement != nil {
log.Printf("[DEBUG] Created new Lambda permission: %s", *out.Statement)
} else {
log.Printf("[DEBUG] Created new Lambda permission, but no Statement was included")
}
d.SetId(d.Get("statement_id").(string))

Loading…
Cancel
Save