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:
parent
6d3e9f4fcf
commit
56d743552d
@ -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;
|
||||
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user