Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
TT-393 added list to userid
  • Loading branch information
mandres2015 committed Nov 10, 2021
commit 9c0e8e03abbde53fd5791c159043864b8b092a32
5 changes: 3 additions & 2 deletions utils/azure_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class MSConfig:
SECRET = os.environ.get('MS_SECRET')
SCOPE = os.environ.get('MS_SCOPE')
ENDPOINT = os.environ.get('MS_ENDPOINT')
USERID = os.environ.get('USERID').split(" ")
USERID = os.environ.get('USERID')


class BearerAuth(requests.auth.AuthBase):
Expand Down Expand Up @@ -263,7 +263,8 @@ def get_groups_and_users(self):
[member['objectId'] for member in item['members']],
)
result = list(map(parse_item, response.json()['value']))
result[0][1].extend(self.config.USERID)
list_of_userid = self.config.USERID.split(" ")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • change ** list_of_userid ** to ** users_id **
  • I recommend using , as the split symbol.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolve comment

result[0][1].extend(list_of_userid)

return result

Expand Down