Sapan Bhatia | 24836f1 | 2013-08-27 10:16:05 -0400 | [diff] [blame] | 1 | import os |
2 | import base64 | ||||
3 | from planetstack.config import Config | ||||
4 | |||||
5 | class SyncSitePrivileges(OpenStackSyncStep): | ||||
6 | provides=[SitePrivilege] | ||||
7 | def sync_record(self, user): | ||||
8 | if site_priv.user.kuser_id and site_priv.site.tenant_id: | ||||
9 | self.driver.add_user_role(site_priv.user.kuser_id, | ||||
10 | site_priv.site.tenant_id, | ||||
11 | site_priv.role.role_type) |