Merge pull request #3423 from bmorg/fix_empty_shell_provisioner_error

provisioner/shell: error with empty shell provisioners
This commit is contained in:
Mitchell Hashimoto 2014-04-09 14:17:20 -07:00
commit 7344b6e39b
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ module VagrantPlugins
:path => expanded_path)
else
data = expanded_path.read(16)
if !data.valid_encoding?
if data != nil && !data.valid_encoding?
errors << I18n.t(
"vagrant.provisioners.shell.invalid_encoding",
actual: data.encoding.to_s,