vagrant_bootstrap 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,8 +22,14 @@ module VagrantBootstrap
|
|
22
22
|
knife = Chef::Knife.new
|
23
23
|
knife.configure_chef
|
24
24
|
knife.config[:yes] = true
|
25
|
-
|
26
|
-
|
25
|
+
|
26
|
+
[Chef::ApiClient, Chef::Node].each do |klass|
|
27
|
+
begin
|
28
|
+
knife.delete_object klass, @client_name
|
29
|
+
rescue
|
30
|
+
# don't care if this fails. Maybe it's not chefed?
|
31
|
+
end
|
32
|
+
end
|
27
33
|
end
|
28
34
|
end
|
29
35
|
end
|