lib/terraforming/resource/iam_policy.rb in terraforming-0.9.1 vs lib/terraforming/resource/iam_policy.rb in terraforming-0.10.0
- old
+ new
@@ -42,10 +42,10 @@
end
private
def iam_policies
- @client.list_policies(scope: "Local").collect {|r| r.policies}.flatten
+ @client.list_policies(scope: "Local").map(&:policies).flatten
end
def iam_policy_description(policy)
@client.get_policy(policy_arn: policy.arn).policy.description
end