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

More detail in image update error msg

This commit is contained in:
Jaime Melis 2010-07-24 19:23:09 +02:00
parent 63ae9d1eea
commit fc99b026ac

View File

@ -29,6 +29,7 @@ void RequestManager::ImageEnable::execute(
xmlrpc_c::value * const retval)
{
string session;
string err_msg;
int iid;
bool enable_flag;
@ -136,7 +137,13 @@ error_authorize:
goto error_common;
error_enable:
oss.str(action_error(method_name, "ENABLE/DISABLE", "IMAGE", iid, rc));
if (enable_flag == TRUE)
{
err_msg = "ENABLE";
} else {
err_msg = "DISABLE";
}
oss.str(action_error(method_name, err_msg, "IMAGE", iid, rc));
image->unlock();
goto error_common;