]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cephadm: fail the script if byte-compile step fails 65373/head
authorJohn Mulligan <jmulligan@redhat.com>
Wed, 3 Sep 2025 17:47:04 +0000 (13:47 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Wed, 3 Sep 2025 17:55:29 +0000 (13:55 -0400)
commit0b3e4a244a34e08e3fc7a7158ee82248bce05be8
treeafa9b8e18397fd56d591e191cd8c087ca2a5d349
parent79a193b2deda4da6c3451c3af7c7463aa178d02e
cephadm: fail the script if byte-compile step fails

Instead of raising an exception on a failure the compileall.compile_dir
returns a boolean indicating if all files compiled successfully or not.
Fail the build.py script if byte compiling fails as that usually
indicates some sort of syntax error.

Fixes: https://tracker.ceph.com/issues/72850
Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/cephadm/build.py