1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Add ability to send in metadata to create_volume request method.

This commit is contained in:
Rupak Ganguly 2012-07-09 12:52:31 -04:00
parent 1487cc8c77
commit d810133da7

View file

@ -36,10 +36,11 @@ module Fog
}
}
l_options = ['snapshot_id']
l_options = ['snapshot_id', 'metadata'] # TODO: add attachments later
l_options.select{|o| options[o]}.each do |key|
data['volume'][key] = options[key]
end
request(
:body => MultiJson.encode(data),
:expects => 200,