Skip to content

Commit dbf8f02

Browse files
committed
early return only on configured
1 parent bb402b2 commit dbf8f02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fixbackend/cloud_accounts/service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,7 @@ async def create_azure_account(
903903
raise ResourceNotFound("Organization does not exist")
904904

905905
if existing := await self.cloud_account_repository.get_by_account_id(workspace_id, account_id):
906-
if not isinstance(existing.state, CloudAccountStates.Deleted):
906+
if isinstance(existing.state, CloudAccountStates.Configured):
907907
log.info("Azure account already exists")
908908
return existing
909909

0 commit comments

Comments
 (0)