Blame SOURCES/0002-Convert-Constraint-to-__ped.Constraint-in-partition..patch

b10e8e
From 760a3b7c39a59c2e0f131b40e0a48bdf8240f637 Mon Sep 17 00:00:00 2001
b10e8e
From: Chris Tyler <chris@tylers.info>
b10e8e
Date: Fri, 11 Jan 2013 13:42:29 -0500
b10e8e
Subject: [PATCH 02/03] Convert Constraint to __ped.Constraint in
b10e8e
 partition.getMaxGeometry()
b10e8e
b10e8e
---
b10e8e
 src/parted/partition.py | 2 +-
b10e8e
 1 file changed, 1 insertion(+), 1 deletion(-)
b10e8e
b10e8e
diff --git a/src/parted/partition.py b/src/parted/partition.py
b10e8e
index 20b6f41..ee3e2d0 100644
b10e8e
--- a/src/parted/partition.py
b10e8e
+++ b/src/parted/partition.py
b10e8e
@@ -166,7 +166,7 @@ class Partition(object):
b10e8e
     def getMaxGeometry(self, constraint):
b10e8e
         """Given a constraint, return the maximum Geometry that self can be
b10e8e
            grown to.  Raises Partitionexception on error."""
b10e8e
-        return parted.Geometry(PedGeometry=self.disk.getPedDisk().get_max_partition_geometry(self.__partition, constraint))
b10e8e
+        return parted.Geometry(PedGeometry=self.disk.getPedDisk().get_max_partition_geometry(self.__partition, constraint.getPedConstraint()))
b10e8e
 
b10e8e
     @localeC
b10e8e
     def isFlagAvailable(self, flag):
b10e8e
-- 
b10e8e
1.8.1.2
b10e8e