CID-471: add docs
This commit is contained in:
parent
7fb5862f85
commit
cfd25be46a
@ -423,6 +423,7 @@ module Provider
|
||||
|
||||
# When you create an instance with with ephemeral storages available within AWS console,
|
||||
# they are mapped automatically. But in case of creating within API we should map them manually.
|
||||
# Result example: [{'VirtualName' => 'ephemeral0', 'DeviceName' => '/dev/xvdb'}]
|
||||
def ephemeral_storages_mappings(flavor)
|
||||
require 'fog/aws/models/compute/flavors'
|
||||
details = Fog::Compute::AWS::FLAVORS.detect {|f| f[:id] == flavor}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user