1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-23 22:50:09 +03:00

feature #2187: fix FILES_DS generation from CLI

This commit is contained in:
Javi Fontan 2013-09-06 16:40:26 +02:00
parent cd1964ea7a
commit 4d95677c48

View File

@ -812,9 +812,13 @@ EOT
lines+=options[:context] if options[:context]
if options[:files_ds]
options[:files_ds].each do |file|
lines << %Q<FILES_DS="$FILE[IMAGE=\"#{file}\"]">
end
text='FILES_DS="'
text << options[:files_ds].map do |file|
%Q<$FILE[IMAGE=\\"#{file}\\"]>
end.join(' ')
text << '"'
lines << text
end
if options[:init]