mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-12 09:17:41 +03:00
bug #1115: Remove error messages from templates before inserting new ones
This commit is contained in:
parent
ca24b85460
commit
0f1195e336
@ -155,8 +155,11 @@ void PoolObjectSQL::set_template_error_message(const string& message)
|
||||
error_value.insert(make_pair("TIMESTAMP",str));
|
||||
error_value.insert(make_pair("MESSAGE",message));
|
||||
|
||||
//Replace previous error message and insert the new one
|
||||
|
||||
attr = new VectorAttribute(error_attribute_name,error_value);
|
||||
|
||||
obj_template->erase(error_attribute_name);
|
||||
obj_template->set(attr);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user