description=self.name,
enabled=self.enabled)
self.tenant_id = tenant.id
+ # give caller an admin role at the tenant they've created
+ self.driver.add_user_role(self.caller.user_id, tenant.id, 'admin')
+
# update the record
if self.id:
self.driver.update_tenant(self.tenant_id,