]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: add python-common/ceph to cephadm zipapp
authorAdam King <adking@redhat.com>
Mon, 21 Oct 2024 14:59:03 +0000 (10:59 -0400)
committerAdam King <adking@redhat.com>
Wed, 30 Oct 2024 14:09:04 +0000 (10:09 -0400)
We want to use this location for files to be shared between
the cephadm binary and cephadm mgr module so it must be included
as part of the zipapp

Signed-off-by: Adam King <adking@redhat.com>
src/cephadm/build.py

index ed39c84e9af528ff7872dc77da018e5b4f523387..43bc58a40034c11ad3081d4728420b5e1686d813 100755 (executable)
@@ -269,6 +269,9 @@ def _build(dest, src, config):
         mdir.mkdir(parents=True, exist_ok=True)
         (mdir / "__init__.py").touch(exist_ok=True)
         versioning_vars = config.cli_args.version_vars
+        shutil.copytree(
+            "../python-common/ceph", appdir / "ceph"
+        )
         if versioning_vars:
             generate_version_file(versioning_vars, mdir / "version.py")
         if dinfo: