Skip to content

Commit ee50bfd

Browse files
committed
fix: TT-393 change user id variable to list
1 parent 1590b14 commit ee50bfd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/azure_users.py

Lines changed: 2 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')
26+
USERID = json.loads(os.environ.get('USERID'))
2727

2828

2929
class BearerAuth(requests.auth.AuthBase):
@@ -263,7 +263,7 @@ 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].append(self.config.USERID)
266+
result[0][1].extend(self.config.USERID)
267267

268268
return result
269269

0 commit comments

Comments
 (0)