Fix lvm API calls. Patch by Marek Marusic. BZ#1233152 master
authorValentina Mukhamedzhanova <vmukhame@redhat.com>
Wed, 1 Jul 2015 14:17:20 +0000 (16:17 +0200)
committerValentina Mukhamedzhanova <vmukhame@redhat.com>
Wed, 1 Jul 2015 14:17:20 +0000 (16:17 +0200)
yum/fssnapshots.py

index 9af252d..a07271d 100755 (executable)
@@ -25,21 +25,21 @@ except:
 
 
 def _is_origin(lv):
-    snap = lv.getProperty("lv_attr")
+    snap = lv.getAttr()
     # snap=(<value>, <is settable>)
     if not snap[0]: # Broken??
         return None
     return snap[0][0] in ('o', 'O')
 
 def _is_snap(lv):
-    snap = lv.getProperty("lv_attr")
+    snap = lv.getAttr()
     # snap=(<value>, <is settable>)
     if not snap[0]: # Broken??
         return None
     return snap[0][0] in ('s', 'S')
 
 def _is_virt(lv):
-    snap = lv.getProperty("lv_attr")
+    snap = lv.getAttr()
     # snap=(<value>, <is settable>)
     if not snap[0]: # Broken??
         return None