Skip to content

Commit fd26edd

Browse files
added the extra condition
1 parent 8908ec7 commit fd26edd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

infra/scripts/upload_team_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def check_team_exists(backend_url, team_id, user_principal_id):
3939

4040
backend_url = sys.argv[1]
4141
directory_path = sys.argv[2]
42-
user_principal_id = sys.argv[3] if len(sys.argv) > 3 else "00000000-0000-0000-0000-000000000000"
42+
user_principal_id = sys.argv[3] if len(sys.argv) > 3 and sys.argv[3].strip() != "" else "00000000-0000-0000-0000-000000000000"
4343
print("User principal from py : " + user_principal_id)
4444

4545
# Convert to absolute path if provided as relative

0 commit comments

Comments
 (0)