mirror of
https://opendev.org/openstack/python-openstackclient.git
synced 2026-01-17 07:20:45 +00:00
When creating a volume, the scheduler hints can be supplied as strings.
The "same_host" and "different_host" hints can also be supplied as a
list if affinity/anti-affinity to multiple volumes is requested [0]
The previously-used `KeyValueAction` only supplies strings as values - the
last one if multiple --hint contain the same key. An alternative already
used in `CreateServer` would be `KeyValueAppendAction`, but only a subset of
the scheduler hints accept lists, so we cannot use that in general.
Therefore, we create `KeyValueHintAction`. It contains both a
`KeyValueAction` and a `KeyValueAppendAction` object and calls the
appropriate action based on the beginning of the given values as defined
in `APPEND_KEYS`.
[0]
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| backup_record.py | ||
| consistency_group.py | ||
| consistency_group_snapshot.py | ||
| qos_specs.py | ||
| service.py | ||
| volume.py | ||
| volume_backend.py | ||
| volume_backup.py | ||
| volume_host.py | ||
| volume_snapshot.py | ||
| volume_transfer_request.py | ||
| volume_type.py | ||