fix bug in delete tenant
diff --git a/planetstack/openstack/driver.py b/planetstack/openstack/driver.py
index 15ea3f5..b6b6d48 100644
--- a/planetstack/openstack/driver.py
+++ b/planetstack/openstack/driver.py
@@ -58,7 +58,7 @@
# so we manually delete instances before deleteing the tenant
instances = self.shell.nova_db.instance_get_all_by_filters(ctx,
{'project_id': tenant.id}, 'id', 'asc')
- client = OpenStackClient(tenant=tenant)
+ client = OpenStackClient(tenant=tenant.name)
driver = OpenStackDriver(client=client)
for instance in instances:
driver.destroy_instance(instance.id)