Merge pull request #8169 from Icinga/bugfix/object-query-all-attrs-8167

GET /v1/objects/*: handle "attrs":[] as expected
This commit is contained in:
Julian Brost 2025-01-24 09:14:17 +01:00 committed by GitHub
commit 78883669d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ Dictionary::Ptr ObjectQueryHandler::SerializeObjectAttrs(const Object::Ptr& obje
}
}
if (!isJoin && (!attrs || attrs->GetLength() == 0))
if (!isJoin && !attrs)
allAttrs = true;
if (allAttrs) {