yifengyou / rpms / yum

Forked from rpms/yum 3 years ago
Clone

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

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