Commit ffa683a
compute: Fix --host in server list for new openstacksdk
With `openstacksdk` 3.2.0 the `host` attribute of an Instance got added
to the `Server` class [0]. With that change, listing servers with the `host`
attribute leads to a query-filter for `compute_host` as expected, but
`openstacksdk` will also filter for the `host` attribute locally after
the results are returned. Since `compute_host` being
`OS-EXT-SRV-ATTR:host` is not the same as `host, this means no results
are returned.
Since we want to keep the old behaviour of filtering by `compute_host`
i.e. the service host name, we need to switch to filter for
`compute_host`. This is already supported in older versions of
`openstacksdk`.
[0] openstack/openstacksdk@0f311ff
Change-Id: I0cd32c5b7d6d4d21194f3efdcfb9b205dea6a91e
Closes-bug: #20742001 parent 50d1e09 commit ffa683a
File tree
2 files changed
+2
-2
lines changed- openstackclient
- compute/v2
- tests/unit/compute/v2
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2648 | 2648 | | |
2649 | 2649 | | |
2650 | 2650 | | |
2651 | | - | |
| 2651 | + | |
2652 | 2652 | | |
2653 | 2653 | | |
2654 | 2654 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4581 | 4581 | | |
4582 | 4582 | | |
4583 | 4583 | | |
4584 | | - | |
| 4584 | + | |
4585 | 4585 | | |
4586 | 4586 | | |
4587 | 4587 | | |
| |||
0 commit comments