Machine ID output should be 7 characters.

This commit is contained in:
Greg J Preece 2019-05-29 11:10:33 -07:00
parent c6a6fd34a3
commit 731f249c50
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ module VagrantPlugins
@env.ui.machine("metadata", "machine-count", entries.length.to_s); @env.ui.machine("metadata", "machine-count", entries.length.to_s);
entries.each do |entry| entries.each do |entry|
opts = { "target" => entry.send(:name).to_s } opts = { "target" => entry.send(:name).to_s }
@env.ui.machine("machine-id", entry.send(:id).to_s, opts) @env.ui.machine("machine-id", entry.send(:id).to_s[0...7], opts)
@env.ui.machine("provider-name", entry.send(:provider).to_s, opts) @env.ui.machine("provider-name", entry.send(:provider).to_s, opts)
@env.ui.machine("machine-home", entry.send(:vagrantfile_path).to_s, opts) @env.ui.machine("machine-home", entry.send(:vagrantfile_path).to_s, opts)
@env.ui.machine("state", entry.send(:state).to_s, opts) @env.ui.machine("state", entry.send(:state).to_s, opts)