From 70c00e8ba787d9e9106934cfee0e0afa606ce326 Mon Sep 17 00:00:00 2001 From: Adam King Date: Mon, 29 Jan 2024 11:23:54 -0500 Subject: [PATCH] cephadm: fix get_version for nvmeof 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 --- src/cephadm/cephadmlib/daemons/nvmeof.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cephadm/cephadmlib/daemons/nvmeof.py b/src/cephadm/cephadmlib/daemons/nvmeof.py index 39488406bc8..673761e8e6e 100644 --- a/src/cephadm/cephadmlib/daemons/nvmeof.py +++ b/src/cephadm/cephadmlib/daemons/nvmeof.py @@ -101,7 +101,7 @@ class CephNvmeof(ContainerDaemonForm): 'inspect', '--format', '{{index .Config.Labels "io.ceph.version"}}', - ctx.image, + container_id, ], ) version = None -- 2.47.3