We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9d063c commit 45d1f2cCopy full SHA for 45d1f2c
1 file changed
lib/chef/knife/cs_server_delete.rb
@@ -47,6 +47,11 @@ def run
47
48
if server['state'] == 'Destroyed' then
49
ui.warn("Server '#{hostname}' already destroyed")
50
+ expunge = confirm_action("Server '#{hostname}' already destroyed, do you want to expunge it?")
51
+ if expunge then
52
+ connection.delete_server(hostname, true)
53
+ next
54
+ end
55
next
56
end
57
0 commit comments