Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES/7678.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed `TypeError: 'str' object has no attribute 'tolower'` in `_ensure_bool` during incremental content exports. Changed `.tolower()` to `.lower()`.
Comment thread
mdellweg marked this conversation as resolved.
4 changes: 2 additions & 2 deletions pulpcore/app/tasks/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ def _ensure_bool(value):
if isinstance(value, bool):
return value
if isinstance(value, str):
if value.tolower() in ["yes", "y", "true", "t", "on", "1"]:
if value.lower() in ["yes", "y", "true", "t", "on", "1"]:
return True
if value.tolower() in ["no", "n", "false", "f", "off", "0"]:
if value.lower() in ["no", "n", "false", "f", "off", "0"]:
return False
if value == 1:
return True
Expand Down
Loading