lib/terraforming/resource/s3.rb in terraforming-0.9.1 vs lib/terraforming/resource/s3.rb in terraforming-0.10.0

- old
+ new

@@ -51,10 +51,10 @@ rescue Aws::S3::Errors::NoSuchBucketPolicy nil end def buckets - @client.list_buckets.buckets.select { |bucket| same_region?(bucket) } + @client.list_buckets.map(&:buckets).flatten.select { |bucket| same_region?(bucket) } end def module_name_of(bucket) normalize_module_name(bucket.name) end