Skip to content

Commit

Permalink
Rubocop fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
slevenick committed Jan 9, 2020
1 parent 1f412fb commit e712fd1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion products/kms/inspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ overrides: !ruby/object:Overrides::ResourceOverrides
plural_custom_logic: third_party/inspec/custom_functions/kms_key_ring_name.erb
properties:
name: !ruby/object:Overrides::Inspec::PropertyOverride
override_name: key_ring_name
# This is added back via custom methods
exclude: true
keyRingUrl: !ruby/object:Overrides::Inspec::PropertyOverride
# Allows us to use the `name` field as the full URL
exclude: false
api_name: name
iam_policy: !ruby/object:Api::Resource::IamPolicy
Expand Down
2 changes: 1 addition & 1 deletion templates/inspec/iam_policy/iam_policy.erb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ identifiers = extract_identifiers(individual_url)
end

def iam_binding_roles
@bindings.map { |binding| binding.role }
@bindings.map(&:role)
end

def count
Expand Down

0 comments on commit e712fd1

Please sign in to comment.