No longer need subprocess wrapping there :)
This commit is contained in:
parent
68ef9676c7
commit
742d47c4cf
|
@ -114,7 +114,6 @@ module VagrantPlugins
|
||||||
# Knife is not part of the current Vagrant bundle, so it needs to run
|
# Knife is not part of the current Vagrant bundle, so it needs to run
|
||||||
# in the context of the system.
|
# in the context of the system.
|
||||||
Vagrant.global_lock do
|
Vagrant.global_lock do
|
||||||
Vagrant::Util::Env.with_clean_env do
|
|
||||||
command = ["knife", deletable, "delete", "--yes", node_name]
|
command = ["knife", deletable, "delete", "--yes", node_name]
|
||||||
r = Vagrant::Util::Subprocess.execute(*command)
|
r = Vagrant::Util::Subprocess.execute(*command)
|
||||||
if r.exit_code != 0
|
if r.exit_code != 0
|
||||||
|
@ -129,5 +128,4 @@ module VagrantPlugins
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue