Skip to content

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

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
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions