From 50086423eeecbc46e2282acebf8696cea5cf5908 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 16 May 2010 18:11:51 -0700 Subject: [PATCH] Fixed some formatting issues with `vagrant status` --- lib/vagrant/commands/status.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/vagrant/commands/status.rb b/lib/vagrant/commands/status.rb index adfafaf3c..795779042 100644 --- a/lib/vagrant/commands/status.rb +++ b/lib/vagrant/commands/status.rb @@ -39,6 +39,7 @@ module Vagrant # No specific VM was specified in a multi-vm environment, # so show short info for each VM show_list + return else # Set the VM to just be the root VM vm = env.vms.values.first @@ -56,9 +57,11 @@ module Vagrant def show_list wrap_output do puts Translator.t(:status_listing) + puts "" env.vms.each do |name, vm| - puts "#{name.ljust(20)}#{vm.state}" + state = vm.created? ? vm.vm.state : "not created" + puts "#{name.to_s.ljust(30)}#{state}" end end end