We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb402b2 commit dbf8f02Copy full SHA for dbf8f02
fixbackend/cloud_accounts/service.py
@@ -903,7 +903,7 @@ async def create_azure_account(
903
raise ResourceNotFound("Organization does not exist")
904
905
if existing := await self.cloud_account_repository.get_by_account_id(workspace_id, account_id):
906
- if not isinstance(existing.state, CloudAccountStates.Deleted):
+ if isinstance(existing.state, CloudAccountStates.Configured):
907
log.info("Azure account already exists")
908
return existing
909
0 commit comments