From a87612a0deddc4fc160b13175e5c68f7717201da Mon Sep 17 00:00:00 2001 From: Chris Lumens Date: Wed, 4 Mar 2009 09:49:40 -0500 Subject: protectedPartitions is a list, not a function. --- partedUtils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'partedUtils.py') diff --git a/partedUtils.py b/partedUtils.py index dc64ee3e0..c42dc6748 100644 --- a/partedUtils.py +++ b/partedUtils.py @@ -223,7 +223,7 @@ def hasProtectedPartitions(drive, anaconda): return rc try: - for protected in anaconda.id.partitions.protectedPartitions(): + for protected in anaconda.id.storage.protectedPartitions: if protected.startswith(drive): part = protected[len(drive):] if part[0] == "p": @@ -584,7 +584,7 @@ class DiskSet: drives = self.disks.keys() drives.sort() - protected = self.anaconda.id.partitions.protectedPartitions() + protected = self.anaconda.id.storage.protectedPartitions for drive in drives: disk = self.disks[drive] -- cgit