mirror of https://github.com/Icinga/icinga2.git
parent
8d5b270812
commit
0b273a0450
|
@ -109,6 +109,8 @@ Value CommandsTable::CustomVariableNamesAccessor(const Value& row)
|
|||
|
||||
String key;
|
||||
Value value;
|
||||
|
||||
ObjectLock xlock(vars);
|
||||
BOOST_FOREACH(tie(key, value), vars) {
|
||||
cv->Add(key);
|
||||
}
|
||||
|
@ -137,6 +139,8 @@ Value CommandsTable::CustomVariableValuesAccessor(const Value& row)
|
|||
|
||||
String key;
|
||||
Value value;
|
||||
|
||||
ObjectLock xlock(vars);
|
||||
BOOST_FOREACH(tie(key, value), vars) {
|
||||
cv->Add(value);
|
||||
}
|
||||
|
@ -165,6 +169,8 @@ Value CommandsTable::CustomVariablesAccessor(const Value& row)
|
|||
|
||||
String key;
|
||||
Value value;
|
||||
|
||||
ObjectLock xlock(vars);
|
||||
BOOST_FOREACH(tie(key, value), vars) {
|
||||
Array::Ptr key_val = new Array();
|
||||
key_val->Add(key);
|
||||
|
|
Loading…
Reference in New Issue