From fa5a9e7f7a67573eba333def3e24da8745975956 Mon Sep 17 00:00:00 2001 From: Kegan Maher Date: Thu, 21 Sep 2023 22:20:40 +0000 Subject: [PATCH] chore: default active flags to False avoids race condition when environment is not yet updated --- benefits/core/migrations/0002_data.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/benefits/core/migrations/0002_data.py b/benefits/core/migrations/0002_data.py index e95b5c781..d94ee9f74 100644 --- a/benefits/core/migrations/0002_data.py +++ b/benefits/core/migrations/0002_data.py @@ -178,7 +178,7 @@ def load_data(app, *args, **kwargs): mst_veteran_verifier = EligibilityVerifier.objects.create( name=os.environ.get("MST_VETERAN_VERIFIER_NAME", "VA.gov - Veteran (MST)"), - active=os.environ.get("MST_VETERAN_VERIFIER_ACTIVE", "True").lower() == "true", + active=os.environ.get("MST_VETERAN_VERIFIER_ACTIVE", "False").lower() == "true", eligibility_type=mst_veteran_type, auth_provider=veteran_auth_provider, selection_label_template="eligibility/includes/selection-label--veteran.html", @@ -309,7 +309,7 @@ def load_data(app, *args, **kwargs): merchant_id=os.environ.get("SACRT_AGENCY_MERCHANT_ID", "sacrt"), info_url="https://sacrt.com/", phone="916-321-2877", - active=os.environ.get("SACRT_AGENCY_ACTIVE", "True").lower() == "true", + active=os.environ.get("SACRT_AGENCY_ACTIVE", "False").lower() == "true", private_key=client_private_key, public_key=client_public_key, jws_signing_alg=os.environ.get("SACRT_AGENCY_JWS_SIGNING_ALG", "RS256"), @@ -329,7 +329,7 @@ def load_data(app, *args, **kwargs): merchant_id=os.environ.get("SBMTD_AGENCY_MERCHANT_ID", "sbmtd"), info_url="https://sbmtd.gov/taptoride/", phone="805-963-3366", - active=os.environ.get("SBMTD_AGENCY_ACTIVE", "True").lower() == "true", + active=os.environ.get("SBMTD_AGENCY_ACTIVE", "False").lower() == "true", private_key=client_private_key, public_key=client_public_key, jws_signing_alg=os.environ.get("SBMTD_AGENCY_JWS_SIGNING_ALG", "RS256"),