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:
Michael Fritch 2020-09-23 15:30:43 -06:00 committed by GitHub
commit 3aa3484425
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: