Commit a620b0b5 authored by Jérome Perrin's avatar Jérome Perrin

standalone: also cleanup supervisor configuration

destroying instance is supposed to remove these, but when there are
issues removing instances we sometimes have supervisor config left from
previous instances.

Reformating now delete theses after logging the problem.
parent 64236365
......@@ -474,7 +474,19 @@ class StandaloneSlapOS(object):
for part in unknown_partition_set:
"removing partition no longer part of format spec %s", part)
# remove partition directory
# remove partition supervisor config, if it was not removed cleanly
supervisor_conf = os.path.join(
'%s.conf' % os.path.basename(part))
if os.path.exists(supervisor_conf):
"removing leftover supervisor config from destroyed partition at %s",
def supply(self, software_url, computer_guid=None, state="available"):
"""Supply a software, see
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