mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
26 lines
671 B
Ruby
26 lines
671 B
Ruby
module Fog
|
|
module Compute
|
|
class RackspaceV2
|
|
class Real
|
|
def delete_metadata_item(collection, server_id, key)
|
|
request(
|
|
:expects => 204,
|
|
:method => 'DELETE',
|
|
:path => "/#{collection}/#{server_id}/metadata/#{key}"
|
|
)
|
|
end
|
|
end
|
|
|
|
class Mock
|
|
def delete_metadata_item(collection, server_id, key)
|
|
raise Fog::Compute::RackspaceV2::NotFound if server_id == 0
|
|
|
|
response = Excon::Response.new
|
|
response.body = ""
|
|
response.status = 204
|
|
response
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|