]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume api.lvm only consider 'ceph.' tags in logical volumes
authorAlfredo Deza <adeza@redhat.com>
Mon, 4 Dec 2017 14:54:35 +0000 (09:54 -0500)
committerAlfredo Deza <adeza@redhat.com>
Thu, 14 Dec 2017 16:55:37 +0000 (11:55 -0500)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit a7e7df14602a10190a2830262a67202e7ad38f49)

src/ceph-volume/ceph_volume/api/lvm.py

index d82aee685f7b2bba90d80f5e35bc725e4c838230..13a2d4d65b6a61259cb2b19f565be90f1143ecbb 100644 (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