diff options
| author | Pavlo Shchelokovskyy <shchelokovskyy@gmail.com> | 2018-05-14 18:13:28 +0000 |
|---|---|---|
| committer | melanie witt <melwittt@gmail.com> | 2020-07-21 03:26:42 +0000 |
| commit | defa0f562b8efc8fc917f1b195c998e2d6224260 (patch) | |
| tree | cc9ea60173580030c322955ffbc2d3466a3478d0 /openstackclient/common/command.py | |
| parent | 3228713ea302a962c11eb96ce34918b94528205e (diff) | |
| download | python-openstackclient-defa0f562b8efc8fc917f1b195c998e2d6224260.tar.gz | |
Add --name-lookup-one-by-one option to server list
usually in a big cloud there are many images and flavors,
while each given project might use only some of those.
This patch introduces '--name-lookup-one-by-one' argument to
server list command (mutually exclusive with '--no-name-lookup')
When provided (or either '--image' or '--flavor' is specified) to the
`server list` command, name resolving for
corresponding entity is now using targeted GET commands instead of
full entities list.
In some situations this can significantly speedup the execution of the
`server list` command by reducing the number of API requests performed.
Conflicts:
openstackclient/compute/v2/server.py
NOTE(melwitt): The conflict is due to change
I93a56138c50b82fb4dce67a2f788107f71c5f423 which is not in Queens.
Change-Id: I59cbf3f75c55e5d3747654edcc9be86ad954cf40
Story: #2002039
Task: #19682
(cherry picked from commit e782f49927a6b142a35f85a1a4a759fd2b1ceedf)
(cherry picked from commit dda007ba33b5c7d1ae539926b826749727276e3c)
Diffstat (limited to 'openstackclient/common/command.py')
0 files changed, 0 insertions, 0 deletions
