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:
parent
1487cc8c77
commit
d810133da7
1 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue