lib/fog/aliyun/requests/storage/get_container.rb in fog-aliyun-0.3.1 vs lib/fog/aliyun/requests/storage/get_container.rb in fog-aliyun-0.3.2
- old
+ new
@@ -37,25 +37,20 @@
elsif delimiter
path += '?delimiter=' + delimiter
end
location = get_bucket_location(bucket)
- endpoint = 'http://' + location + '.aliyuncs.com'
resource = bucket + '/'
ret = request(
expects: [200, 203, 400],
method: 'GET',
path: path,
resource: resource,
bucket: bucket
)
xml = ret.data[:body]
- result = XmlSimple.xml_in(xml)['CommonPrefixes']
+ XmlSimple.xml_in(xml)['CommonPrefixes']
end
- end
-
- class Mock
- def get_container(container, options = {}); end
end
end
end
end