Bug 786817 - [ovirt] [engine-cli] ovirt-shell should sys.exit() with proper RC in case authentication fails
Summary: [ovirt] [engine-cli] ovirt-shell should sys.exit() with proper RC in case au...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-engine-cli
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Michael Pasternak
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-02 13:36 UTC by Haim
Modified: 2014-01-13 00:50 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-05 08:44:18 UTC
oVirt Team: ---
Embargoed:


Attachments (Terms of Use)

Description Haim 2012-02-02 13:36:21 UTC
Description of problem:

when I execute the following: 

[root@rhevm-a8c-03 tmp]# ovirt-shell --url='localhost:8080/api' --username='admin' --password='letmein' --connect

ovirt-shell enters shell mode in disconnected state;

Welcome to Red Hat Enterprise Virtualization.

Type:  'help' for help with commands
       'exit' to leave this interactive shell

(disconnected) > 

please sys.exit(RC={wrong-password\authentication fails}) instead of entering shell.

Comment 1 Michael Pasternak 2012-02-05 08:44:18 UTC
no, this is by design - to provide help/params auto-completion capabilities.


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