mirror of
https://github.com/OpenNebula/one.git
synced 2025-02-02 09:47:00 +03:00
feature #3718: Remove STATE from monitor values
This commit is contained in:
parent
27e3ac289f
commit
e5eb92eeec
@ -430,7 +430,7 @@ public:
|
||||
clear_template_monitor_error();
|
||||
}
|
||||
|
||||
const VirtualMachineMonitorInfo& get_info() const
|
||||
VirtualMachineMonitorInfo& get_info()
|
||||
{
|
||||
return monitoring;
|
||||
}
|
||||
|
@ -57,12 +57,14 @@ public:
|
||||
return rc;
|
||||
};
|
||||
|
||||
char get_state() const
|
||||
char remove_state()
|
||||
{
|
||||
string state_str;
|
||||
|
||||
get("STATE", state_str);
|
||||
|
||||
erase("STATE");
|
||||
|
||||
if (state_str.empty())
|
||||
{
|
||||
return '-';
|
||||
|
@ -656,9 +656,9 @@ void VirtualMachineManagerDriver::process_poll(
|
||||
|
||||
vmpool->update(vm);
|
||||
|
||||
const VirtualMachineMonitorInfo &minfo = vm->get_info();
|
||||
VirtualMachineMonitorInfo &minfo = vm->get_info();
|
||||
|
||||
state = minfo.get_state();
|
||||
state = minfo.remove_state();
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -677,7 +677,7 @@ void VirtualMachineManagerDriver::process_poll(
|
||||
return;
|
||||
};
|
||||
|
||||
state = minfo.get_state();
|
||||
state = minfo.remove_state();
|
||||
}
|
||||
|
||||
/* ---------------------------------------------------------------------- */
|
||||
|
Loading…
x
Reference in New Issue
Block a user