Red Hat Bugzilla – Bug 854519
rhevm-shell does not exit shell when using -f option with non-existing file
Last modified: 2016-07-04 20:07:33 EDT
I'm passing file that doesn't exists, I can see error but shell remains open:
[imeerovi@imeerovi ART]$ rhevm-shell -l "https://aqua-rhel.qa.lab.tlv.redhat.com:443/api/" -u "firstname.lastname@example.org" -p "123456" -I -f bug
>>> connected to RHEVM manager 22.214.171.124 <<<
error: [Errno 2] No such file or directory: 'bug'
[RHEVM shell (connected)]#
If i understand correct -f option will be very useful for system scripts.
So in order to ease system programmers life maybe it will be better to close connection with rc and message rather remain it open.
rpm version: rhevm-cli-126.96.36.199-1.el6ev.noarch
the thing is that shell currently writes only to own private I/O stream, so by implementing this RFE entire script output will be swallowed,
postponing this BZ till #895559 got implemented
verified with ovirt-engine-cli-188.8.131.52-1.20140112.git01360ed.el6.noarch
Closing as part of 3.4.0