qm/ct status shows only qms/cts, no nodes.
This commit is contained in:
parent
20db6bd9b2
commit
83211a817f
|
@ -11,8 +11,7 @@ def cli_ct
|
|||
|
||||
ct_cli.cmd( :status, "Lists CTs with status", aliases: [nil], &lambda {|target=nil, sort: nil, node: nil, status: nil, tags: nil|
|
||||
hosting_table target: target, status: status, sort: sort, tags: tags do |push|
|
||||
node_opt( node).
|
||||
each( &push).lazy.
|
||||
node_opt( node).lazy.
|
||||
map {|n| Thread.new n, &:lxc }.
|
||||
each {|n| n.value.each &push }
|
||||
end
|
||||
|
|
|
@ -53,8 +53,7 @@ def cli_qm
|
|||
|
||||
qm_cli.cmd( :status, "Lists VMs with status", aliases: [nil], &lambda {|target=nil, sort: nil, node: nil, status: nil, tags: nil|
|
||||
hosting_table target: target, status: status, sort: sort, tags: tags do |push|
|
||||
node_opt( node).
|
||||
each( &push).lazy.
|
||||
node_opt( node).lazy.
|
||||
flat_map {|n| [ Thread.new( n, &:qemu) ] }.
|
||||
each {|n| n.value.each &push }
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue