lib/terraforming/resource/iam_user.rb in terraforming-0.9.1 vs lib/terraforming/resource/iam_user.rb in terraforming-0.10.0
- old
+ new
@@ -20,11 +20,11 @@
end
def tfstate
iam_users.inject({}) do |resources, user|
attributes = {
- "arn"=> user.arn,
+ "arn" => user.arn,
"id" => user.user_name,
"name" => user.user_name,
"path" => user.path,
"unique_id" => user.user_id,
}
@@ -41,10 +41,10 @@
end
private
def iam_users
- @client.list_users.collect {|r| r.users}.flatten
+ @client.list_users.map(&:users).flatten
end
def module_name_of(user)
normalize_module_name(user.user_name)
end