Renamed UserDeployments->UserDeployment
diff --git a/planetstack/openstack_observer/steps/sync_site_privileges.py b/planetstack/openstack_observer/steps/sync_site_privileges.py
index db2c012..78da7b2 100644
--- a/planetstack/openstack_observer/steps/sync_site_privileges.py
+++ b/planetstack/openstack_observer/steps/sync_site_privileges.py
@@ -18,9 +18,9 @@
def sync_record(self, site_priv):
# sync site privileges at all site deployments
- site_deployments = SiteDeployments.objects.filter(site=site_priv.site)
+ site_deployments = SiteDeployment.objects.filter(site=site_priv.site)
for site_deployment in site_deployments:
- user_deployments = UserDeployments.objects.filter(deployment=site_deployment.deployment)
+ user_deployments = UserDeployment.objects.filter(deployment=site_deployment.deployment)
if user_deployments:
kuser_id = user_deployments[0].kuser_id
driver = self.driver.admin_driver(deployment=site_deployment.deployment.name)