Skip to content

Commit

Permalink
fix: Load the organization ID as a string
Browse files Browse the repository at this point in the history
This is a workaround to a bug in dynaconf. OrgID is commonly
(but doesn't have to be) a string-integer, and gets parsed as int
instead (on versions >3.2.3). According to the bug report linked
in the patch, it will be addressed in dynaconf>=3.3.0.
  • Loading branch information
m-horky authored and ptoscano committed Nov 13, 2024
1 parent 660e9d0 commit e5aeed8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pytest_client_tools/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ def __init__(self):
Validator("candlepin.activation_keys", is_type_of=list),
Validator(
"candlepin.org",
is_type_of=str,
# Fix for a regression in dynaconf, can be removed with dynaconf>=3.3.0
# https://github.com/dynaconf/dynaconf/issues/1064
# "Validator default string parsed to number"
cast=str,
must_exist=True,
when=Validator(
"candlepin.activation_keys",
Expand Down

0 comments on commit e5aeed8

Please sign in to comment.