ceph-volume api.lvm only consider 'ceph.' tags in logical volumes

Signed-off-by: Alfredo Deza <adeza@redhat.com>
This commit is contained in:
Alfredo Deza 2017-12-04 09:54:35 -05:00
parent e1b77cf714
commit 9306504f0a

View File

@ -63,6 +63,8 @@ def parse_tags(lv_tags):
tag_mapping = {}
tags = lv_tags.split(',')
for tag_assignment in tags:
if not tag_assignment.startswith('ceph.'):
continue
key, value = tag_assignment.split('=', 1)
tag_mapping[key] = value