mirror of
https://github.com/inspec/inspec
synced 2024-11-23 13:13:22 +00:00
Capture ResourceNotFound exception from LMF (#2623)
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
This commit is contained in:
parent
60352f2093
commit
469369fa32
1 changed files with 6 additions and 1 deletions
|
@ -45,7 +45,12 @@ EOX
|
|||
aws_search_criteria = {}
|
||||
aws_search_criteria[:filter_name] = filter_name if filter_name
|
||||
aws_search_criteria[:log_group_name] = log_group_name if log_group_name
|
||||
begin
|
||||
aws_results = backend.describe_metric_filters(aws_search_criteria)
|
||||
rescue Aws::CloudWatchLogs::Errors::ResourceNotFoundException
|
||||
@exists = false
|
||||
return
|
||||
end
|
||||
|
||||
# Then perform local filtering
|
||||
if pattern
|
||||
|
|
Loading…
Reference in a new issue