Skip to content

Commit

Permalink
feat(rbac_populate.py): fixing column name
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajaditya Chauhan committed Nov 22, 2023
1 parent 6e22ac3 commit 95de4f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opl/rbac_populate.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def create_principal(cursor, account):
user_type = "user"
logging.info(f"Creating principal username = {user_name}")
cursor.execute(
"INSERT INTO public.management_principal (uuid, username, tenant_id) VALUES (%s, %s, (SELECT id FROM public.api_tenant WHERE tenant_name = 'acct' || %s), %s) RETURNING id",
"INSERT INTO public.management_principal (uuid, username, tenant_id, type) VALUES (%s, %s, (SELECT id FROM public.api_tenant WHERE tenant_name = 'acct' || %s), %s) RETURNING id",
(user_uuid, user_name, account, user_type),
)
user_id = cursor.fetchone()[0]
Expand Down

0 comments on commit 95de4f5

Please sign in to comment.