Skip to content

Commit

Permalink
chore: default active flags to False
Browse files Browse the repository at this point in the history
avoids race condition when environment is not yet updated
  • Loading branch information
thekaveman committed Sep 21, 2023
1 parent 8575cfb commit fa5a9e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions benefits/core/migrations/0002_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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"),
Expand All @@ -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"),
Expand Down

0 comments on commit fa5a9e7

Please sign in to comment.