blob: 273fd33bf49b12abb4dcde986c90a242faff5aa8 [file] [log] [blame]
Sapan Bhatia24836f12013-08-27 10:16:05 -04001import os
2import base64
3from planetstack.config import Config
4
5class SyncSitePrivileges(OpenStackSyncStep):
Sapan Bhatia2ef36c82013-09-02 14:30:37 -04006 requested_interval=0
7
Sapan Bhatia24836f12013-08-27 10:16:05 -04008 provides=[SitePrivilege]
9 def sync_record(self, user):
10 if site_priv.user.kuser_id and site_priv.site.tenant_id:
11 self.driver.add_user_role(site_priv.user.kuser_id,
12 site_priv.site.tenant_id,
13 site_priv.role.role_type)