Skip to content

Commit 20e6a8b

Browse files
🛠️ apply pre-commit fixes
1 parent eabccc2 commit 20e6a8b

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

docs/billing_account_reactivation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ When encountering issues related to Google Cloud billing accounts being disabled
1414

1515
6. **Verify the account is active**: After reactivation, ensure that the billing account status has changed to active and that services are running as expected.
1616

17-
For more detailed instructions and troubleshooting, refer to the official [Google Cloud Billing documentation](https://cloud.google.com/billing/docs).
17+
For more detailed instructions and troubleshooting, refer to the official [Google Cloud Billing documentation](https://cloud.google.com/billing/docs).

src/sentry/tasks/relocation.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -788,8 +788,12 @@ def camel_to_snake_keep_underscores(value):
788788
)
789789
# Check if the Google Cloud project's billing account is active
790790
if not is_billing_account_active(gcp_project_id()):
791-
logger.error('Billing account for project is inactive.')
792-
fail_relocation(relocation, OrderedTask.VALIDATING_START, 'Google Cloud project billing account is not active.')
791+
logger.error("Billing account for project is inactive.")
792+
fail_relocation(
793+
relocation,
794+
OrderedTask.VALIDATING_START,
795+
"Google Cloud project billing account is not active.",
796+
)
793797
return
794798

795799
response = cb_client.create_build(project_id=gcp_project_id(), build=build)

0 commit comments

Comments
 (0)