blob: d76b5331546e89d54a3e49e0c9cc2cc4e0cab049 [file] [log] [blame]
from core.models import Sliver
from observer.deleter import Deleter
class SliverDeleter(Deleter):
model='Sliver'
def call(self, pk):
sliver = Sliver.objects.get(pk=pk)
if sliver.instance_id:
self.driver.destroy_instance(sliver.instance_id)
sliver.delete()