1
0
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:
Javi Fontan 2015-09-16 17:03:27 +02:00
parent 0d51a96d1f
commit a45c0a4078

View File

@ -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]