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:
parent
3e63a30ae9
commit
fe3b320b09
@ -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 -------------
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user