]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Potential fix for pull request finding copilot/fix-review-comments 69108/head
authorGuillaume Abrioux <gabrioux@ibm.com>
Tue, 26 May 2026 15:08:16 +0000 (17:08 +0200)
committerGitHub <noreply@github.com>
Tue, 26 May 2026 15:08:16 +0000 (17:08 +0200)
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
src/ceph-volume/ceph_volume/util/encryption.py

index 367f01b613c25e138cf2b787dfc02859ac266c1f..a514ab8b33188bbd683dee1c819bb332071347f4 100644 (file)
@@ -72,7 +72,7 @@ def set_dmcrypt_no_workqueue(target_version: str = '2.3.4') -> None:
 
 def bypass_workqueue(device: str) -> bool:
     return (not BackingDeviceRotation.is_rotational(device)
-            and conf.dmcrypt_no_workqueue)
+            and bool(conf.dmcrypt_no_workqueue))
 
 def get_key_size_from_conf():
     """