provisioners/puppet: run in elevated mode on Win guests
This commit is contained in:
parent
29bb106c13
commit
6bd7359c1b
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue