mirror of
https://github.com/ceph/ceph
synced 2025-01-29 22:43:40 +00:00
Merge pull request #23129 from alfredodeza/wip-rm24952
ceph-volume lvm.listing only include devices if they exist Reviewed-by: Andrew Schoen <aschoen@redhat.com>
This commit is contained in:
commit
12f1ffe784
@ -49,8 +49,15 @@ def pretty_report(report):
|
||||
value=value
|
||||
)
|
||||
)
|
||||
output.append(
|
||||
device_metadata_item_template.format(tag_name='devices', value=','.join(device['devices'])))
|
||||
if not device.get('devices'):
|
||||
continue
|
||||
else:
|
||||
output.append(
|
||||
device_metadata_item_template.format(
|
||||
tag_name='devices',
|
||||
value=','.join(device['devices'])
|
||||
)
|
||||
)
|
||||
|
||||
print(''.join(output))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user