lib/fog/hp/requests/storage/post_container.rb in fog-1.22.0 vs lib/fog/hp/requests/storage/post_container.rb in fog-1.22.1

- old
+ new

@@ -1,10 +1,9 @@ module Fog module Storage class HP class Real - # Create or update metadata for an existing container # # ==== Parameters # * container<~String> - Name for existing container, should be < 256 bytes and must not contain '/' # * headers<~Hash> - Hash of metadata name/value pairs @@ -15,24 +14,20 @@ :method => 'POST', :path => Fog::HP.escape(container) ) response end - end class Mock # :nodoc:all - def post_container(container_name, headers = {}) if self.data[:containers][container_name].nil? raise Fog::Storage::HP::NotFound end response = Excon::Response.new response.status = 204 response end - end - end end end