1
0
Fork 0
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:
Chris Roberts 2013-03-06 12:27:23 -08:00
parent 82dad5103e
commit d24d9c510c

View file

@ -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),