Skip to content

Commit 7d45bfd

Browse files
author
thepetk
committed
Make bool the rmv src var
1 parent fafb958 commit 7d45bfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitlab2sentry/resources.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def is_test_env(env: str) -> bool:
152152
GITLAB_RMV_SRC_BRANCH = (
153153
TEST_GITLAB_RMV_SRC_BRANCH
154154
if is_test_env(ENV)
155-
else os.environ["GITLAB_REMOVE_SOURCE"]
155+
else bool(int(os.environ["GITLAB_REMOVE_SOURCE"]))
156156
)
157157
GITLAB_MENTIONS_LIST = os.getenv("GITLAB_MENTIONS")
158158
GITLAB_MENTIONS_ACCESS_LEVEL = int(os.getenv("GITLAB_MENTIONS_ACCESS_LEVEL", 40))

0 commit comments

Comments
 (0)