mirror of
https://github.com/ceph/ceph
synced 2025-02-23 11:07:35 +00:00
Merge pull request #37186 from guits/guits-cephadm-filter-dangling-images
cephadm: filter dangling images in get_last_local_ceph_image()
This commit is contained in:
commit
3aa3484425
@ -1385,6 +1385,7 @@ def get_last_local_ceph_image():
|
||||
out, _, _ = call_throws(
|
||||
[container_path, 'images',
|
||||
'--filter', 'label=ceph=True',
|
||||
'--filter', 'dangling=false',
|
||||
'--format', '{{.Repository}} {{.Tag}}'])
|
||||
for line in out.splitlines():
|
||||
if len(line.split()) == 2:
|
||||
|
Loading…
Reference in New Issue
Block a user