diff options
author | Rick Harris <rconradharris@gmail.com> | 2012-03-06 00:33:37 +0000 |
---|---|---|
committer | Rick Harris <rconradharris@gmail.com> | 2012-03-08 04:53:47 +0000 |
commit | b22ec22336def07a0678fd0c548fb87ea48c6eab (patch) | |
tree | 9a68f3f93f9bb8471bcad8997320e4c75eea494a /tools | |
parent | 0528368fb9173eaa7d3e8bf41948b8cc73b11ae8 (diff) | |
download | python-novaclient-b22ec22336def07a0678fd0c548fb87ea48c6eab.tar.gz |
Add human-friendly ID support.
Allows a user to interact with certain models (image, flavors, and
servers currently) using a human-friendly identifier which is a
slugified form of the model name.
Example:
nova boot --image debian-6-squeeze --flavor 256mb-instance myinst
Change-Id: I43dbedac3493d010c1ec9ba8b8bb1007ff7ac499
Diffstat (limited to 'tools')
-rw-r--r-- | tools/nova.bash_completion | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/nova.bash_completion b/tools/nova.bash_completion index 58565d02..90d16c0c 100644 --- a/tools/nova.bash_completion +++ b/tools/nova.bash_completion @@ -7,8 +7,8 @@ _nova() opts="$(nova bash_completion)" - UUID_CACHE=~/.novaclient/*/*-uuid-cache - opts+=" "$(cat $UUID_CACHE 2> /dev/null | tr '\n' ' ') + COMPLETION_CACHE=~/.novaclient/*/*-cache + opts+=" "$(cat $COMPLETION_CACHE 2> /dev/null | tr '\n' ' ') COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) } |