mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Stop swallowing errors from DescribeAlarms
This caused alarms to be created repeatedly if Terraform is running without DescribeAlarms permission.
This commit is contained in:
parent
fe540b408f
commit
0b9fb1d8f8
@ -259,7 +259,7 @@ func getAwsCloudWatchMetricAlarm(d *schema.ResourceData, meta interface{}) (*clo
|
||||
|
||||
resp, err := conn.DescribeAlarms(¶ms)
|
||||
if err != nil {
|
||||
return nil, nil
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// Find it and return it
|
||||
|
Loading…
Reference in New Issue
Block a user