1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

feature #575: Fix wrong stream while printing error in HookManager. Changed name of ERROR attribute

This commit is contained in:
Ruben S. Montero 2011-04-22 01:19:16 +02:00
parent 5dc7b686ad
commit 9c0fcc9702
2 changed files with 2 additions and 2 deletions

View File

@ -172,7 +172,7 @@ void HookManagerDriver::protocol(
if ( !info.empty() && info[0] != '-' )
{
vm->set_template_error_message(os.str());
vm->set_template_error_message(oss.str());
vmpool->update(vm);
}

View File

@ -132,7 +132,7 @@ void PoolObjectSQL::set_template_error_message(const string& message)
str[24] = '\0'; // Get rid of final enter character
error_value.insert(make_pair("TIME_STAMP",str));
error_value.insert(make_pair("TIMESTAMP",str));
error_value.insert(make_pair("MESSAGE",message));
attr = new VectorAttribute(error_attribute_name,error_value);