Skip to content

Commit 0345df5

Browse files
fix: Update principalId placeholder in create_postgres_tables.py and script to replace it correctly
1 parent b83e6fc commit 0345df5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/data_scripts/create_postgres_tables.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import psycopg2
33
from psycopg2 import sql
44

5-
principalId = "principalId"
5+
principalId = "userPrincipalId"
66
user = "managedIdentityName"
77
host = "serverName"
88
dbname = "postgres"

scripts/run_create_table_script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ curl --output "$requirementFile" "$requirementFileUrl"
2828
echo "Download completed"
2929

3030
# Replace placeholders in the python script with actual values
31-
sed -i "s/principalId/${principalId}/g" "create_postgres_tables.py"
31+
sed -i "s/userPrincipalId/${principalId}/g" "create_postgres_tables.py"
3232
sed -i "s/managedIdentityName/${managedIdentityName}/g" "create_postgres_tables.py"
3333
sed -i "s/serverName/${serverName}/g" "create_postgres_tables.py"
3434

0 commit comments

Comments
 (0)