Juan Hernandez has submitted this change and it was merged.
Change subject: cli: Don't fail when there is no tty
......................................................................
cli: Don't fail when there is no tty
Currently we always try to open the /dev/tty device, but this will fail
in environments where there isn't a terminal available, like when
running from a cron script. This patch changes the CLI so that it won't
crash in these situations.
Change-Id: Ie68152e171248b5b18296773b2cd5acaf98d34f3
Bug-Url:
https://bugzilla.redhat.com/1119412
Signed-off-by: Juan Hernandez <juan.hernandez(a)redhat.com>
(cherry picked from commit a2e573477e38bdc2ba4b3c778f4b69b3928d57cc)
---
M src/cli/platform/posix/terminal.py
1 file changed, 26 insertions(+), 14 deletions(-)
Approvals:
Juan Hernandez: Verified; Looks good to me, approved
--
To view, visit
http://gerrit.ovirt.org/30250
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ie68152e171248b5b18296773b2cd5acaf98d34f3
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine-cli
Gerrit-Branch: cli_3.5
Gerrit-Owner: Juan Hernandez <juan.hernandez(a)redhat.com>
Gerrit-Reviewer: Juan Hernandez <juan.hernandez(a)redhat.com>
Gerrit-Reviewer: automation(a)ovirt.org