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:
parent
63ae9d1eea
commit
fc99b026ac
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user