mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-26 06:50:09 +03:00
M #-: fix minor bug in CLI (#94)
(cherry picked from commit eac7e1efb8168f1af1abfaf26731257666fa0128)
This commit is contained in:
parent
fe81b5544f
commit
d7ded2d9a1
@ -667,7 +667,9 @@ module CLIHelper
|
||||
def expand_columns(expand_columns, all = false)
|
||||
return if expand_columns.empty?
|
||||
|
||||
if $stdout.tty? || (IO.console && IO.console.tty?)
|
||||
if $stdout.isatty
|
||||
terminal_size = $stdout.winsize[1]
|
||||
elsif IO.console && IO.console.tty?
|
||||
terminal_size = IO.console.winsize[1]
|
||||
else
|
||||
terminal_size = nil
|
||||
|
Loading…
x
Reference in New Issue
Block a user