vagrant_bootstrap 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -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
|