This fix changes the item that cached for completion from
"human_id" to "name".
A string for completion shoud not be changed in any way,
because changed keyword can not use as command line parameter.
But the "human_id" means "human readable id" that is
changed from "name" by method "to_slug". "to_slug" is meant to
create a valid path name from a string.
The tools/nova.bash_completion take the completion string from
the file ".novaclient/*/*-cache". The file is created when client
call "list" command. For example , "nova list","nova image-list",
and the others.
Currently, items that are written to the cache file is the "id"
and "human_id".
Reviewed: https:/ /review. openstack. org/136379 /git.openstack. org/cgit/ openstack/ python- novaclient/ commit/ ?id=9a6a7664c27 09023390e494475 45799d5c7ca805
Committed: https:/
Submitter: Jenkins
Branch: master
commit 9a6a7664c270902 3390e4944754579 9d5c7ca805
Author: Ikuo Kumagai <email address hidden>
Date: Fri Nov 21 13:47:30 2014 +0000
Change the unsuitable item caching for completion
This fix changes the item that cached for completion from
"human_id" to "name".
A string for completion shoud not be changed in any way,
because changed keyword can not use as command line parameter.
But the "human_id" means "human readable id" that is
changed from "name" by method "to_slug". "to_slug" is meant to
create a valid path name from a string.
The tools/nova. bash_completion take the completion string from */*-cache" . The file is created when client
the file ".novaclient/
call "list" command. For example , "nova list","nova image-list",
and the others.
Currently, items that are written to the cache file is the "id"
and "human_id".
Closes-Bug: #1193049
Change-Id: I241ec8b7c87292 74ee43db6e36014 1fd381b265e