lib/commands/container.rb in testlab-1.4.4 vs lib/commands/container.rb in testlab-1.5.0

- old
+ new

@@ -28,17 +28,13 @@ c.long_desc <<-EOF Displays the status of all containers or single/multiple containers if supplied via the ID parameter. EOF c.command :status do |status| status.action do |global_options, options, args| - containers = iterate_objects_by_name(options[:name], TestLab::Container).delete_if{ |container| container.node.dead? } + containers = iterate_objects_by_name(options[:name], TestLab::Container) - if (containers.count == 0) - @testlab.ui.stderr.puts("You either have no containers defined or dead nodes!".yellow) - else - ZTK::Report.new(:ui => @testlab.ui).list(containers, TestLab::Container::STATUS_KEYS) do |container| - OpenStruct.new(container.status) - end + ZTK::Report.new(:ui => @testlab.ui).list(containers, TestLab::Container::STATUS_KEYS) do |container| + OpenStruct.new(container.status) end end end # CONTAINER SSH