mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 14:44:32 +02:00
Merge pull request #8169 from Icinga/bugfix/object-query-all-attrs-8167
GET /v1/objects/*: handle "attrs":[] as expected
This commit is contained in:
commit
78883669d3
@ -31,7 +31,7 @@ Dictionary::Ptr ObjectQueryHandler::SerializeObjectAttrs(const Object::Ptr& obje
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isJoin && (!attrs || attrs->GetLength() == 0))
|
if (!isJoin && !attrs)
|
||||||
allAttrs = true;
|
allAttrs = true;
|
||||||
|
|
||||||
if (allAttrs) {
|
if (allAttrs) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user