apache / cloudstack-cloudmonkey

Apache Cloudstack Cloudmonkey
Apache License 2.0
91 stars 60 forks source link

list clusters name parameter acts like a wildcard #109

Closed PaulAngus closed 2 years ago

PaulAngus commented 2 years ago

When passing a name to list clusters , the name is treated as if there is a wildcard on the end. Attempting to determine the ID of a cluster as an alternative isn't possible as one cannot use list clusters to find the relevant clusterid

cmk list clusters filter=name name=Pool1
{
  "cluster": [
    {
      "name": "Pool1"
    },
    {
      "name": "pool10"
    }
  ],
  "count": 2
}
DaanHoogland commented 2 years ago

@PaulAngus If you test 4.16.1 can you check this? it is fixed in the backend by apache/cloudstack#5782 (and close if appropriate)

rohityadavcloud commented 2 years ago

This can't be fixed in the client, since 4.16.1 PR has fixed this in the API this should be fixed with 4.16.1.0 onwards. I think the issue can be closed.

rohityadavcloud commented 2 years ago

Fixed by https://github.com/apache/cloudstack/pull/5782 can't fix this for older ACS version as the API param is handled by mgmt server (not by cmk/cli).