Fix nil case

This commit is contained in:
Yufan Lou 2017-06-16 11:22:56 +08:00 committed by GitHub
parent 3b63e1f8b8
commit b8bad54ad9
1 changed files with 1 additions and 1 deletions

View File

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