Skip to content

Commit 12ffad5

Browse files
authored
Merge pull request ceph#62935 from adk3798/cephadm-fix-shell-name-stopped-daemon
cephadm: don't collect image ids for daemons with no container info Reviewed-by: John Mulligan <[email protected]> Reviewed-by: Redouane Kachach <[email protected]>
2 parents 2c842c0 + 94dbc49 commit 12ffad5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/cephadm/cephadmlib/container_lookup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,9 @@ def infer_local_ceph_image(
132132
]
133133
# collect the running ceph daemon image ids
134134
images_in_use_by_daemon = set(
135-
d.image_id for d, n in matching_daemons if n == daemon_name
135+
d.image_id
136+
for d, n in matching_daemons
137+
if (n == daemon_name and d is not None)
136138
)
137139
images_in_use = set(
138140
d.image_id for d, _ in matching_daemons if d is not None

0 commit comments

Comments
 (0)