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:
parent
cd1964ea7a
commit
4d95677c48
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user