Merge pull request #8666 from louy2/patch-1

Chomp lookup gid
This commit is contained in:
Chris Roberts 2017-06-19 16:45:04 -07:00 committed by GitHub
commit b3365af4b8
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ module VagrantPlugins
command: gid_command, command: gid_command,
output: output[:stderr] output: output[:stderr]
) { |type, data| output[type] << data if output[type] } ) { |type, data| output[type] << data if output[type] }
mount_gid = output[:stdout].split(':').at(2) mount_gid = output[:stdout].split(':').at(2).to_s.chomp
self.class_variable_get(:@@logger).debug("Owner group ID (lookup): #{options[:group]} -> #{mount_gid}") self.class_variable_get(:@@logger).debug("Owner group ID (lookup): #{options[:group]} -> #{mount_gid}")
rescue Vagrant::Errors::VirtualBoxMountFailed rescue Vagrant::Errors::VirtualBoxMountFailed
if options[:owner] == options[:group] if options[:owner] == options[:group]