fix bugs
diff --git a/planetstack/observer/deleters/site_deleter.py b/planetstack/observer/deleters/site_deleter.py
index 468dfe8..17619c5 100644
--- a/planetstack/observer/deleters/site_deleter.py
+++ b/planetstack/observer/deleters/site_deleter.py
@@ -9,7 +9,7 @@
site_deployments = SiteDeployments.objects.filter(site=site)
for site_deployment in site_deployments:
if site_deployment.tenant_id:
- driver = self.driver.admin_driver(deployment=site_deployment.deployment.name
+ driver = self.driver.admin_driver(deployment=site_deployment.deployment.name)
driver.delete_tenant(site_deployment.tenant_id)
site_deployment.delete()
site.delete()
diff --git a/planetstack/observer/deleters/slice_deleter.py b/planetstack/observer/deleters/slice_deleter.py
index d007a68..33985fb 100644
--- a/planetstack/observer/deleters/slice_deleter.py
+++ b/planetstack/observer/deleters/slice_deleter.py
@@ -2,10 +2,10 @@
from observer.deleter import Deleter
class SliceDeleter(Deleter):
- model='Slice'
+ model='Slice'
- def call(self, pk):
- slice = Slice.objects.get(pk=pk)
+ def call(self, pk):
+ slice = Slice.objects.get(pk=pk)
slice_deployments = SliceDeployments.objects.filter(slice=slice)
for slice_deployment in slice_deployments:
user = User.get(user=slice.creator)