]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: fix get_version for nvmeof 55355/head
authorAdam King <adking@redhat.com>
Mon, 29 Jan 2024 16:23:54 +0000 (11:23 -0500)
committerAdam King <adking@redhat.com>
Mon, 29 Jan 2024 16:27:57 +0000 (11:27 -0500)
This needed to be using the container id it was
passed, instead of ctx.image which is likely to
be `None` when this is run.

Fixes: https://tracker.ceph.com/issues/64229
Signed-off-by: Adam King <adking@redhat.com>
src/cephadm/cephadmlib/daemons/nvmeof.py

index 39488406bc8e66dc018f94a209111bcd6cfffa0f..673761e8e6ebb68fe8578937a8541eb05e4c3fee 100644 (file)
@@ -101,7 +101,7 @@ class CephNvmeof(ContainerDaemonForm):
                 'inspect',
                 '--format',
                 '{{index .Config.Labels "io.ceph.version"}}',
-                ctx.image,
+                container_id,
             ],
         )
         version = None