Blame SOURCES/BZ-1233152-pvm-api-lv_attr.patch

bb45c0
commit 1ba900a1c6a0a6d4dc3c2fd7a5de3027ecb3a153
bb45c0
Author: Valentina Mukhamedzhanova <vmukhame@redhat.com>
bb45c0
Date:   Wed Jul 1 16:17:20 2015 +0200
bb45c0
bb45c0
    Fix lvm API calls. Patch by Marek Marusic. BZ#1233152
bb45c0
bb45c0
diff --git a/yum/fssnapshots.py b/yum/fssnapshots.py
bb45c0
index 9af252d..a07271d 100755
bb45c0
--- a/yum/fssnapshots.py
bb45c0
+++ b/yum/fssnapshots.py
bb45c0
@@ -25,21 +25,21 @@ except:
bb45c0
 
bb45c0
 
bb45c0
 def _is_origin(lv):
bb45c0
-    snap = lv.getProperty("lv_attr")
bb45c0
+    snap = lv.getAttr()
bb45c0
     # snap=(<value>, <is settable>)
bb45c0
     if not snap[0]: # Broken??
bb45c0
         return None
bb45c0
     return snap[0][0] in ('o', 'O')
bb45c0
 
bb45c0
 def _is_snap(lv):
bb45c0
-    snap = lv.getProperty("lv_attr")
bb45c0
+    snap = lv.getAttr()
bb45c0
     # snap=(<value>, <is settable>)
bb45c0
     if not snap[0]: # Broken??
bb45c0
         return None
bb45c0
     return snap[0][0] in ('s', 'S')
bb45c0
 
bb45c0
 def _is_virt(lv):
bb45c0
-    snap = lv.getProperty("lv_attr")
bb45c0
+    snap = lv.getAttr()
bb45c0
     # snap=(<value>, <is settable>)
bb45c0
     if not snap[0]: # Broken??
bb45c0
         return None