Renamed UserDeployments->UserDeployment
diff --git a/planetstack/ec2_observer/deleters/user_deployment_deleter.py b/planetstack/ec2_observer/deleters/user_deployment_deleter.py
index 49d349b..6d3825c 100644
--- a/planetstack/ec2_observer/deleters/user_deployment_deleter.py
+++ b/planetstack/ec2_observer/deleters/user_deployment_deleter.py
@@ -1,11 +1,11 @@
-from core.models import User, UserDeployments
+from core.models import User, UserDeployment
from observer.deleter import Deleter
class UserDeploymentDeleter(Deleter):
model='UserDeployment'
def call(self, pk):
- user_deployment = UserDeployments.objects.get(pk=pk)
+ user_deployment = UserDeployment.objects.get(pk=pk)
if user_deployment.user.kuser_id:
driver = self.driver.admin_driver(deployment=user_deployment.deployment.name)
driver.delete_user(user_deployment.user.kuser_id)