Skip to content

Commit

Permalink
Merge pull request #66 from base2Services/feature/issue-60
Browse files Browse the repository at this point in the history
add possible reasons for error for alarm override validation failure
  • Loading branch information
Guslington authored May 26, 2022
2 parents eefc62b + 1fc5775 commit c7f67e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cfnguardian/compile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def validate_resources()
when 'Alarm'
%w(metric_name namespace).each do |property|
if resource.send(property).nil?
errors << "Alarm #{resource.name} for resource #{resource.resource_id} has nil value for property #{property.to_camelcase}"
errors << "Alarm #{resource.name} for resource #{resource.resource_id} has nil value for property #{property.to_camelcase}. This could be due to incorrect spelling of a default alarm name or missing property #{property.to_camelcase} on a new alarm."
end
end
when 'Check'
Expand Down

0 comments on commit c7f67e7

Please sign in to comment.