provisioners/puppet: run in elevated mode on Win guests

This commit is contained in:
Emiliano Ticci 2014-05-26 11:23:14 +02:00
parent 29bb106c13
commit 6bd7359c1b
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ module VagrantPlugins
"vagrant.provisioners.puppet.running_puppet", "vagrant.provisioners.puppet.running_puppet",
manifest: config.manifest_file)) manifest: config.manifest_file))
@machine.communicate.sudo(command, good_exit: [0,2]) do |type, data| @machine.communicate.sudo(command, elevated: true, good_exit: [0,2]) do |type, data|
if !data.chomp.empty? if !data.chomp.empty?
@machine.ui.info(data.chomp) @machine.ui.info(data.chomp)
end end