Bug 910858 - quantum --help outputs error strings about lack of installed editors.
Summary: quantum --help outputs error strings about lack of installed editors.
Keywords:
Status: CLOSED DUPLICATE of bug 889774
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-quantumclient
Version: 2.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: RHOS Maint
QA Contact: Ofer Blaut
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-13 17:31 UTC by Stephen Gordon
Modified: 2016-04-26 18:46 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-15 14:22:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Stephen Gordon 2013-02-13 17:31:41 UTC
Description of problem:

When running quantum --help on a RHEL box with only @core + RHOS packages the output is prefixed with:

which: no gedit in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
which: no kate in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
which: no vim in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
which: no emacs in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
which: no nano in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
which: no pico in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)

There are really a few issues here:

- In my opinion this output appears superfluous as the script proceeds to work anyway (at least for --help, not sure about other actions), in particular if there is really no editor then just one line would be enough to state that if it's absolutely required to tell the user.

- RHEL @core does actually include an editor, vi, but that is never checked for.

- Setting the EDITOR environment variable to point at vi doesn't appear to help, because the EDITOR environment variable is never checked.

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

python-quantumclient-2.1.10-1.el6ost.noarch

Comment 1 Perry Myers 2013-02-15 14:22:30 UTC
I think this is a duplicate of bug # 889774

*** This bug has been marked as a duplicate of bug 889774 ***


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