cloudstack-cloudmonkey icon indicating copy to clipboard operation
cloudstack-cloudmonkey copied to clipboard

Filter on parameter listing empty objects when filtered parameter doesn't exists

Open sureshanaparti opened this issue 2 months ago • 0 comments

Apache CloudStack 🐵 CloudMonkey 6.5.0

(localcloud) 🐱 > list usagerecords startdate=2025-10-07 enddate=2025-10-10 type=6 usageid=2c218702-abff-46e8-bc8a-3e12fffa2188 filter=count
{
  "count": 319,
  "usagerecord": [
    {},
    {},
    {},
    {},
    {},
    {},
    {},
...
    {},
    {},
    {}
  ]
}

Expected:

(localcloud) 🐱 > list usagerecords startdate=2025-10-07 enddate=2025-10-10 type=6 usageid=2c218702-abff-46e8-bc8a-3e12fffa2188 filter=count
{
  "count": 319
}

sureshanaparti avatar Oct 10 '25 09:10 sureshanaparti