]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume: update volume's tags structure when setting tags
authorMohamad Gebai <mgebai@suse.com>
Tue, 2 Apr 2019 10:45:02 +0000 (06:45 -0400)
committerMohamad Gebai <mgebai@suse.com>
Thu, 25 Apr 2019 17:03:53 +0000 (13:03 -0400)
Signed-off-by: Mohamad Gebai <mgebai@suse.com>
(cherry picked from commit 4a1198deffb0baf647a6a31e03cbfe98f011ff14)

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

index 58676b89685b3150e4964404bbc1f9cba27f2393..b0605fe1ad3792e0e8f15a549caadda464aa4e14 100644 (file)
@@ -1201,6 +1201,7 @@ class Volume(object):
                 '--addtag', '%s=%s' % (key, value), self.lv_path
             ]
         )
+        self.tags[key] = value
 
 
 class PVolume(object):