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:
parent
3970ab5797
commit
9111f7aba7
2 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ module Fog
|
|||
attribute :display_description, :aliases => 'displayDescription'
|
||||
attribute :status
|
||||
attribute :size
|
||||
attribute :type, :aliases => 'volumeType'
|
||||
attribute :volume_type, :aliases => 'volumeType'
|
||||
attribute :snapshot_id, :aliases => 'snapshotId'
|
||||
attribute :imageRef, :aliases => 'image_id'
|
||||
attribute :availability_zone, :aliases => 'availabilityZone'
|
||||
|
|
|
@ -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|
|
||||
data['volume'][key] = options[key]
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue