Bug 1470718 - [RFE] configure bash-completion within python-openstackclient post installation script
[RFE] configure bash-completion within python-openstackclient post installati...
Status: ASSIGNED
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-openstackclient (Show other bugs)
7.0 (Kilo)
Unspecified Unspecified
low Severity low
: ---
: ---
Assigned To: Julie Pichon
Udi
NeedsAllocation
: FutureFeature, Triaged, ZStream
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-07-13 10:05 EDT by David Vallee Delisle
Modified: 2018-06-15 06:02 EDT (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description David Vallee Delisle 2017-07-13 10:05:23 EDT
Description of problem:
python-openstackclient should install bash-completion file in /usr/share/bash-completion/completions

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. install bash-completion
2. install python-openstackclient

Actual results:
There's no bash-completion for the openstack command

Expected results:
There should be bash-completion

Additional info:
According to openstack's docs, there's a builtin command to generate the autocomplete file:
https://docs.openstack.org/python-openstackclient/latest/cli/command-objects/complete.html

So doing something like this in the %postscript might solve the issue:
rpm -q bash-completion > /dev/null 2>&1 && openstack complete > /usr/share/bash-completion/completions/openstack
Comment 1 David Hill 2017-07-13 10:17:17 EDT
Hello guys,

   I think this is a great idea and in python-openstackclient spec file , we should also add : 

Requires: bash-completion

Which isn't a big dependency ...

Thank you very much,

David Hill

Note You need to log in before you can comment on or make changes to this bug.