Bug 786817

Summary: [ovirt] [engine-cli] ovirt-shell should sys.exit() with proper RC in case authentication fails
Product: [Retired] oVirt Reporter: Haim <hateya>
Component: ovirt-engine-cliAssignee: Michael Pasternak <mpastern>
Status: CLOSED NOTABUG QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: acathrow, bazulay, iheim, mgoldboi, yeylon, ykaul
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-05 08:44:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.