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

feature #3654: Recover lcm_state_to_str interface

(cherry picked from commit c328fc076d23c26d436c8280b4822b778691a893)
This commit is contained in:
Ruben S. Montero 2015-04-22 17:32:55 +02:00
parent 6d3e9f4fcf
commit 56d743552d
2 changed files with 4 additions and 4 deletions

View File

@ -204,10 +204,8 @@ public:
return 0;
}
static string lcm_state_to_str(LcmState state)
static string& lcm_state_to_str(string& st, LcmState state)
{
string st;
switch (state)
{
case LCM_INIT: st = "LCM_INIT"; break;

View File

@ -88,6 +88,8 @@ void VirtualMachineStateHook::parse_hook_arguments(PoolObjectSQL * obj,
if ( found != string::npos )
{
parsed.replace(found, 15, VirtualMachine::lcm_state_to_str(prev_lcm));
string str;
parsed.replace(found, 15, VirtualMachine::lcm_state_to_str(str, prev_lcm));
}
}