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): |
Sapan Bhatia | 2ef36c8 | 2013-09-02 14:30:37 -0400 | [diff] [blame^] | 6 | requested_interval=0 |
| 7 | |
Sapan Bhatia | 24836f1 | 2013-08-27 10:16:05 -0400 | [diff] [blame] | 8 | 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) |