From 25713e4568f96f521ec1e457a9deb57176138eaf Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 30 Jan 2013 20:22:29 -0800 Subject: [PATCH] Show proper message when viewing status for multi-machine --- plugins/commands/status/command.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/plugins/commands/status/command.rb b/plugins/commands/status/command.rb index 460dd73d2..d19240181 100644 --- a/plugins/commands/status/command.rb +++ b/plugins/commands/status/command.rb @@ -19,11 +19,16 @@ module VagrantPlugins results << "#{machine.name.to_s.ljust(25)}#{machine.state.short_description}" end - state = results.length == 1 ? state : "listing" + message = nil + if results.length == 1 + message = state.long_description + else + message = I18n.t("vagrant.commands.status.listing") + end @env.ui.info(I18n.t("vagrant.commands.status.output", :states => results.join("\n"), - :message => state.long_description), + :message => message), :prefix => false) # Success, exit status 0