Stop swallowing errors from DescribeAlarms

This caused alarms to be created repeatedly if Terraform is running without
DescribeAlarms permission.
This commit is contained in:
David Tolnay 2016-06-18 15:57:01 -07:00
parent fe540b408f
commit 0b9fb1d8f8
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
1 changed files with 1 additions and 1 deletions

View File

@ -259,7 +259,7 @@ func getAwsCloudWatchMetricAlarm(d *schema.ResourceData, meta interface{}) (*clo
resp, err := conn.DescribeAlarms(&params)
if err != nil {
return nil, nil
return nil, err
}
// Find it and return it