1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-23 17:33:56 +03:00

Fix paginated CLI output on onehost show and oneimage show (#2446)

This commit is contained in:
sergiojvg 2018-09-21 12:34:49 -04:00 committed by Tino Vázquez
parent 3e63a30ae9
commit fe3b320b09
3 changed files with 3 additions and 3 deletions

View File

@ -581,7 +581,7 @@ EOT
# output
#-----------------------------------------------------------------------
def list_pool_table(table, pool, options, filter_flag)
if $stdout.isatty
if $stdout.isatty and (!options.key?:no_pager)
size = $stdout.winsize[0] - 1
# ----------- First page, check if pager is needed -------------

View File

@ -533,7 +533,7 @@ class OneHostHelper < OpenNebulaHelper::OneHelper
onevm_helper=OneVMHelper.new
onevm_helper.client=@client
onevm_helper.list_pool({:filter=>["HOST=#{host.name}"]}, false)
onevm_helper.list_pool({:filter=>["HOST=#{host.name}"], :no_pager => true}, false)
end
def print_pcis(pcis)

View File

@ -320,7 +320,7 @@ class OneImageHelper < OpenNebulaHelper::OneHelper
vms.map!{|e| e.to_i }
onevm_helper=OneVMHelper.new
onevm_helper.client=@client
onevm_helper.list_pool({:ids=>vms}, false)
onevm_helper.list_pool({:ids=>vms, :no_pager => true}, false)
end
end