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>
(cherry picked from commit
70c00e8ba787d9e9106934cfee0e0afa606ce326)
Conflicts:
src/cephadm/cephadmlib/daemons/nvmeof.py
out, err, ret = call(ctx,
[ctx.container_engine.path, 'inspect',
'--format', '{{index .Config.Labels "io.ceph.version"}}',
- ctx.image])
+ container_id])
version = None
if ret == 0:
version = out.strip()