Skip to content

Commit 9c0e8e0

Browse files
committed
TT-393 added list to userid
1 parent 4b071a1 commit 9c0e8e0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

utils/azure_users.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class MSConfig:
2323
SECRET = os.environ.get('MS_SECRET')
2424
SCOPE = os.environ.get('MS_SCOPE')
2525
ENDPOINT = os.environ.get('MS_ENDPOINT')
26-
USERID = os.environ.get('USERID').split(" ")
26+
USERID = os.environ.get('USERID')
2727

2828

2929
class BearerAuth(requests.auth.AuthBase):
@@ -263,7 +263,8 @@ def get_groups_and_users(self):
263263
[member['objectId'] for member in item['members']],
264264
)
265265
result = list(map(parse_item, response.json()['value']))
266-
result[0][1].extend(self.config.USERID)
266+
list_of_userid = self.config.USERID.split(" ")
267+
result[0][1].extend(list_of_userid)
267268

268269
return result
269270

0 commit comments

Comments
 (0)