diff --git a/fixbackend/cloud_accounts/service.py b/fixbackend/cloud_accounts/service.py index b063dac1..0b637d61 100644 --- a/fixbackend/cloud_accounts/service.py +++ b/fixbackend/cloud_accounts/service.py @@ -1076,6 +1076,8 @@ def update_state(cloud_account: CloudAccount) -> CloudAccount: scan=scan, ) return evolve(cloud_account, state=CloudAccountStates.Configured(access, enabled, scan)) + case CloudAccountStates.Degraded(): + return evolve(cloud_account, state=evolve(cloud_account.state, scan=scan)) case _: # pragma: no cover raise WrongState(f"Account {cloud_account_id} is not configured, cannot enable account")