[openstack-dev] [python-novaclient] When do you use "human_id" ?

熊谷育朗 i-kumagai at bit-isle.co.jp
Thu Nov 6 06:36:41 UTC 2014


 I have a simple question.

Acording to the commit comment(*1),"human_id" is human-friendly ID.
And that is a slugified form of the model.
"slugified" means like url slugfy.
It replace the space between the string to hyphen and remove non
charactor string.
For example, "a b c"  is replaced to "a-b-c", and "a.b.c" is replaced "abc".

I already know that it is used for bash-completion.
Do you know any other usecase? Is that all?

FYI: (*1)
The commit comment is below.
commit b22ec22336def07a0678fd0c548fb87ea48c6eab
Author: Rick Harris <rconradharris at gmail.com>
Date:   Tue Mar 6 00:33:37 2012 +0000

    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.


        nova boot --image debian-6-squeeze --flavor 256mb-instance myinst

    Change-Id: I43dbedac3493d010c1ec9ba8b8bb1007ff7ac499

Bit-isle Inc.
R &D Institute
Ikuo Kumagai
mobile: 080-6857-3938
E-mail:i-kumagai at bit-isle.co.jp

More information about the OpenStack-dev mailing list