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