fix bug
diff --git a/plstackapi/planetstack/api/roles.py b/plstackapi/planetstack/api/roles.py
index 34415d8..063f512 100644
--- a/plstackapi/planetstack/api/roles.py
+++ b/plstackapi/planetstack/api/roles.py
@@ -11,9 +11,9 @@
role.save()
return role
-def delete_role(auth, name):
+def delete_role(auth, role_id):
driver = OpenStackDriver(client = auth_check(auth))
- role = Role.objects.filter(role_type=name)
+ role = Role.objects.filter(role__id=role_id)
driver.delete_role(name)
role.delete()
return 1