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

feature #575: Add error messages from IM to Host Template

This commit is contained in:
Ruben S. Montero 2011-04-27 18:38:17 +02:00
parent 9c0fcc9702
commit 5925c89232

View File

@ -143,15 +143,16 @@ void InformationManagerDriver::protocol(
error_driver_info:
ess << "Error monitoring host " << id << " : " << is.str();
NebulaLog::log("InM", Log::ERROR, ess);
goto error_common_info;
error_parse_info:
ess << "Error parsing host information: " << hinfo;
NebulaLog::log("InM",Log::ERROR,ess);
goto error_common_info;
error_common_info:
NebulaLog::log("InM",Log::ERROR,ess);
host->set_template_error_message(ess.str());
host->touch(false);