Skip to content

Commit

Permalink
#383 fix rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
erickascic committed Feb 25, 2020
1 parent e963628 commit 9fe6722
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/cfn-nag/custom_rules/ApiGatewaySecurityPolicyRule.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@ def rule_id
end

def audit_impl(cfn_model)
violating_domains = cfn_model.resources_by_type('AWS::ApiGateway::DomainName').select do |domain|
violating_domains = cfn_model.resources_by_type('AWS::ApiGateway::DomainName').select do |domain|
domain.securityPolicy.nil? || domain.securityPolicy == 'TLS_1_0'
end

violating_domains.map(&:logical_resource_id)
end

end

0 comments on commit 9fe6722

Please sign in to comment.