Skip to content

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

@sureshanaparti

Description

@sureshanaparti

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
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions