From e3326e42617157b42a88de674fdefae749291d85 Mon Sep 17 00:00:00 2001 From: Wesley Beary Date: Fri, 4 Sep 2009 17:25:41 -0700 Subject: [PATCH] fix typos --- lib/fog/aws/models/s3/bucket.rb | 2 +- lib/fog/aws/models/s3/buckets.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fog/aws/models/s3/bucket.rb b/lib/fog/aws/models/s3/bucket.rb index 199c20b23..8659c26ec 100644 --- a/lib/fog/aws/models/s3/bucket.rb +++ b/lib/fog/aws/models/s3/bucket.rb @@ -26,7 +26,7 @@ module Fog end def location - data = s3.get_bucket_location(@name) + data = connection.get_bucket_location(@name) data.body['LocationConstraint'] end diff --git a/lib/fog/aws/models/s3/buckets.rb b/lib/fog/aws/models/s3/buckets.rb index edd5485d5..752eac2e6 100644 --- a/lib/fog/aws/models/s3/buckets.rb +++ b/lib/fog/aws/models/s3/buckets.rb @@ -51,7 +51,7 @@ module Fog bucket.objects.merge_attributes(objects_data) data['Contents'].each do |object| owner = Fog::AWS::S3::Owner.new(object.delete('Owner').merge!(:connection => connection)) - bucket.objects[object['key']] = Fog::AWS::S3::Object.new({ + bucket.objects[object['Key']] = Fog::AWS::S3::Object.new({ :bucket => bucket, :connection => connection, :objects => self,