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

[Openstack|volume] fix key name for volume_type

The cinder API uses volume_type instead of type.
This commit is contained in:
Grzesiek Kolodziejczyk 2013-07-05 15:41:01 +02:00
parent 3970ab5797
commit 9111f7aba7
2 changed files with 2 additions and 2 deletions

View file

@ -12,7 +12,7 @@ module Fog
attribute :display_description, :aliases => 'displayDescription' attribute :display_description, :aliases => 'displayDescription'
attribute :status attribute :status
attribute :size attribute :size
attribute :type, :aliases => 'volumeType' attribute :volume_type, :aliases => 'volumeType'
attribute :snapshot_id, :aliases => 'snapshotId' attribute :snapshot_id, :aliases => 'snapshotId'
attribute :imageRef, :aliases => 'image_id' attribute :imageRef, :aliases => 'image_id'
attribute :availability_zone, :aliases => 'availabilityZone' attribute :availability_zone, :aliases => 'availabilityZone'

View file

@ -12,7 +12,7 @@ module Fog
} }
} }
vanilla_options = [:snapshot_id, :imageRef] vanilla_options = [:snapshot_id, :imageRef, :volume_type]
vanilla_options.select{|o| options[o]}.each do |key| vanilla_options.select{|o| options[o]}.each do |key|
data['volume'][key] = options[key] data['volume'][key] = options[key]
end end