Show proper message when viewing status for multi-machine

This commit is contained in:
Mitchell Hashimoto 2013-01-30 20:22:29 -08:00
parent c5120fdd5e
commit 25713e4568
1 changed files with 7 additions and 2 deletions

View File

@ -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