mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-14 19:24:10 +03:00
bug #3910: use image DEV_PREFIX for disk attach
This commit is contained in:
parent
0d51a96d1f
commit
a45c0a4078
@ -612,14 +612,14 @@ cmd=CommandParser::CmdParser.new(ARGV) do
|
||||
else
|
||||
image_id = options[:image]
|
||||
target = options[:target]
|
||||
prefix = options[:prefix] || "sd"
|
||||
prefix = options[:prefix]
|
||||
|
||||
if target
|
||||
template =
|
||||
"DISK = [ IMAGE_ID = #{image_id}, TARGET = #{target}"
|
||||
else
|
||||
template = "DISK = [ IMAGE_ID = #{image_id}"
|
||||
template << ", DEV_PREFIX = #{prefix}"
|
||||
template << ", DEV_PREFIX = #{prefix}" if prefix
|
||||
end
|
||||
|
||||
if options[:cache]
|
||||
|
Loading…
x
Reference in New Issue
Block a user