|
|
@@ -176,14 +176,10 @@ class SentryClient(object):
|
|
|
|
|
|
|
|
|
def list_sentry_privileges_by_authorizable(self, serviceName, authorizableSet, groups=None, roleSet=None):
|
|
|
- authorizableSet = ['%s->%s' % (_auth['type'], _auth['name']) for _authSet in authorizableSet for _auth in _authSet['authorizables']]
|
|
|
+ authorizableSet = ['%s=%s' % (_auth['type'], _auth['name']) for _authSet in authorizableSet for _auth in _authSet['authorizables']]
|
|
|
|
|
|
if roleSet is not None:
|
|
|
roleSet = TSentryActiveRoleSet(**roleSet)
|
|
|
|
|
|
request = TListSentryPrivilegesByAuthRequest(requestorUserName=self.username, component=self.component, serviceName=serviceName, authorizablesSet=set(authorizableSet), groups=groups, roleSet=roleSet)
|
|
|
- #return self.client.list_sentry_privileges_by_authorizable(request)
|
|
|
- return type('Response', (object,), {
|
|
|
- 'status': type('Status', (object,), {'value': 0}),
|
|
|
- 'privilegesMapByAuth': {}
|
|
|
- })
|
|
|
+ return self.client.list_sentry_privileges_by_authorizable(request)
|