mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 22:54:57 +02:00
Hide TicketSalt in /v1/variables
This commit is contained in:
parent
0f7cfa372a
commit
4d57de2a1a
@ -99,6 +99,9 @@ bool VariableQueryHandler::HandleRequest(
|
|||||||
ArrayData results;
|
ArrayData results;
|
||||||
|
|
||||||
for (const Dictionary::Ptr& var : objs) {
|
for (const Dictionary::Ptr& var : objs) {
|
||||||
|
if (var->Get("name") == "TicketSalt")
|
||||||
|
continue;
|
||||||
|
|
||||||
results.emplace_back(new Dictionary({
|
results.emplace_back(new Dictionary({
|
||||||
{ "name", var->Get("name") },
|
{ "name", var->Get("name") },
|
||||||
{ "type", var->Get("type") },
|
{ "type", var->Get("type") },
|
||||||
|
Loading…
x
Reference in New Issue
Block a user