mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Support optional snapshot_id
key when creating volumes
This commit is contained in:
parent
82dad5103e
commit
d24d9c510c
1 changed files with 1 additions and 0 deletions
|
@ -13,6 +13,7 @@ module Fog
|
||||||
data['volume']['display_description'] = options[:display_description] unless options[:display_description].nil?
|
data['volume']['display_description'] = options[:display_description] unless options[:display_description].nil?
|
||||||
data['volume']['volume_type'] = options[:volume_type] unless options[:volume_type].nil?
|
data['volume']['volume_type'] = options[:volume_type] unless options[:volume_type].nil?
|
||||||
data['volume']['availability_zone'] = options[:availability_zone] unless options[:availability_zone].nil?
|
data['volume']['availability_zone'] = options[:availability_zone] unless options[:availability_zone].nil?
|
||||||
|
data['volume']['snapshot_id'] = options[:snapshot_id] unless options[:snapshot_id].nil?
|
||||||
|
|
||||||
request(
|
request(
|
||||||
:body => Fog::JSON.encode(data),
|
:body => Fog::JSON.encode(data),
|
||||||
|
|
Loading…
Reference in a new issue