Verified Commit 2b5780c4 authored by Loïc Dachary's avatar Loïc Dachary Committed by Loïc Dachary

enough: ensure deleted stacks are always removed from hosts.yml

parent b2844066
......@@ -155,6 +155,7 @@ class Stack(OpenStackBase):
def delete_no_wait(self):
name = self.definition['name']
if name not in self.list():
Hosts(self.config_dir).delete(name)
return False
self.o.stack.delete('--yes', name)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment