openstack image list with names containing spaces does not work
Created by: berendt
(openstack) image list --name Kubernetes CAPI 1.22.9
usage: image list [-h] [-f {csv,json,table,value,yaml}] [-c COLUMN] [--quote {all,minimal,none,nonnumeric}] [--noindent]
[--max-width <integer>] [--fit-width] [--print-empty] [--sort-column SORT_COLUMN] [--sort-ascending | --sort-descending]
[--public | --private | --community | --shared] [--property <key=value>] [--name <name>] [--status <status>]
[--member-status <member-status>] [--project <project>] [--project-domain <project-domain>] [--tag <tag>] [--hidden]
[--long] [--sort <key>[:<direction>]] [--limit <num-images>] [--marker <image>]
image list: error: unrecognized arguments: CAPI 1.22.9
Quoting does not solve the issue inside when using the shell mode:
(openstack) image list --name 'Kubernetes CAPI 1.22.9'
usage: image list [-h] [-f {csv,json,table,value,yaml}] [-c COLUMN] [--quote {all,minimal,none,nonnumeric}] [--noindent]
[--max-width <integer>] [--fit-width] [--print-empty] [--sort-column SORT_COLUMN] [--sort-ascending | --sort-descending]
[--public | --private | --community | --shared] [--property <key=value>] [--name <name>] [--status <status>]
[--member-status <member-status>] [--project <project>] [--project-domain <project-domain>] [--tag <tag>] [--hidden]
[--long] [--sort <key>[:<direction>]] [--limit <num-images>] [--marker <image>]
image list: error: unrecognized arguments: CAPI 1.22.9
Looks like quoting does solve the issue when using the CLI mode:
openstack --os-cloud gx-wavestack image list --name 'Kubernetes CAPI 1.22.9'
+--------------------------------------+------------------------+--------+
| ID | Name | Status |
+--------------------------------------+------------------------+--------+
| cacba981-1d9b-4268-bd12-1371887ab1a0 | Kubernetes CAPI 1.22.9 | active |
+--------------------------------------+------------------------+--------+