bash completion mangles image and server names that contain periods
Bug #1193049 reported by
David Cramer
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-novaclient |
Fix Released
|
Low
|
Ikuo Kumagai |
Bug Description
I have image and server names like:
docs-internal.
When I use the bash completion script (https:/
docs-internalra
I notice that the names are already mangled in some files in ~/.novaclient/
dcramer@anatine ~
$ cat ~/.novaclient/
docs-internal-dev
docs-staging-
docs-internalra
docs-backup
docs-stagingrac
Changed in python-novaclient: | |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in python-novaclient: | |
assignee: | nobody → Loic Dachary (dachary) |
Changed in python-novaclient: | |
assignee: | Loic Dachary (dachary) → Ikuo Kumagai (i-kumagai) |
Changed in python-novaclient: | |
milestone: | none → 2.21.0 |
Changed in python-novaclient: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
It seems that the file names are munged by the fact that slugify(value), defined in utils.py, is called on the human name.
@property
"""Subclasses may override this provide a pretty ID which can be used getattr( self, self.NAME_ATTR))
def human_id(self):
for bash completion.
"""
if self.NAME_ATTR in self.__dict__ and self.HUMAN_ID:
return utils.slugify(
return None
It's not clear to me why it would be desirable slugify the human id if the intent is to use it for bash completion.