Skip to content

Commit 67cf176

Browse files
committed
Set can_access_account flag to false when updating creds
1 parent 36e3109 commit 67cf176

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

fixbackend/cloud_accounts/azure_subscription_repo.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ async def upsert(
8383
existing.client_id = client_id
8484
existing.client_secret = client_secret
8585
existing.created_at = utc() # update to trigger list_created_after
86+
existing.updated_at = utc()
87+
existing.can_access_azure_account = False
8688
model = existing.to_model()
8789
await session.commit()
8890
return model
@@ -93,6 +95,7 @@ async def upsert(
9395
azure_tenant_id=azure_tenant_id,
9496
client_id=client_id,
9597
client_secret=client_secret,
98+
can_access_azure_account=False,
9699
)
97100
session.add(entity)
98101
await session.commit()

0 commit comments

Comments
 (0)