mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
feature #2699: convert new lines to spaces in CONTEXT/FILES
(cherry picked from commit ef0b9546192f8bb3e6399924cbc6d0e2a4b2c2b8)
This commit is contained in:
parent
ce9c8eacb5
commit
27c637221c
@ -2692,6 +2692,14 @@ int VirtualMachine::generate_context(string &files, int &disk_id, string& token_
|
||||
files += files_ds;
|
||||
}
|
||||
|
||||
for (int i=0;i<files.length();i++)
|
||||
{
|
||||
if (files[i] == '\n')
|
||||
{
|
||||
files[i] = ' ';
|
||||
}
|
||||
}
|
||||
|
||||
context->vector_value("TOKEN", token);
|
||||
|
||||
if (token)
|
||||
|
Loading…
x
Reference in New Issue
Block a user