Skip to content

Commit

Permalink
fix: search scope (#106)
Browse files Browse the repository at this point in the history
* fix: search scope

* fix: check for result in scope search
  • Loading branch information
devrimyatar authored Nov 23, 2021
1 parent 52e1630 commit c8c12df
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions setup_app/installers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,10 @@ def check_clients(self, client_var_id_list, resource=False):


def check_scope(self, scope_id):
result = self.dbUtils.search('ou=scopes,o=jans', '(jansId={})'.format(scope_id))
search_filter = '(&(objectClass=jansScope)(jansId={}))'.format(scope_id)
result = self.dbUtils.search('ou=scopes,o=jans', search_filter=search_filter)
if result:
return result['dn']
return result.get('dn')


def run_service_command(self, operation, service):
Expand Down

0 comments on commit c8c12df

Please sign in to comment.