Skip to content

[PR #7679/305163c4 backport][3.85] Fix TypeError in _ensure_bool: str has no attribute 'tolower'#7681

Merged
ggainey merged 1 commit into3.85from
patchback/backports/3.85/305163c4e3391388839050b5e970340c393b1aed/pr-7679
May 5, 2026
Merged

[PR #7679/305163c4 backport][3.85] Fix TypeError in _ensure_bool: str has no attribute 'tolower'#7681
ggainey merged 1 commit into3.85from
patchback/backports/3.85/305163c4e3391388839050b5e970340c393b1aed/pr-7679

Conversation

@patchback
Copy link
Copy Markdown

@patchback patchback Bot commented May 5, 2026

This is a backport of PR #7679 as merged into main (305163c).

Summary

_ensure_bool in pulpcore/app/tasks/export.py (introduced in 438bdc8) calls value.tolower() which does not exist on Python strings. This causes incremental content exports to fail with:

Error: 'str' object has no attribute 'tolower'

Fix changes both occurrences to value.lower().

🤖 Generated with Claude Code

_ensure_bool introduced in 438bdc8 used .tolower() instead of .lower(),
causing incremental content exports to fail.

closes #7678

Assisted-By: Claude Sonnet 4.6 <noreply@anthropic.com>
(cherry picked from commit 305163c)
@ggainey ggainey enabled auto-merge (rebase) May 5, 2026 16:39
@ggainey ggainey merged commit 73cfbcb into 3.85 May 5, 2026
14 checks passed
@ggainey ggainey deleted the patchback/backports/3.85/305163c4e3391388839050b5e970340c393b1aed/pr-7679 branch May 5, 2026 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants