From bacf400d106843e0624fda498b289a67ac99d648 Mon Sep 17 00:00:00 2001 From: David Cantrell Date: Tue, 27 Jan 2009 14:25:36 -1000 Subject: Syntax fixes for the new pyparted. To get a parted.Device object, we call: parted.getDevice(path) To create a new parted.Disk object, we need a parted.Device and we call: parted.Disk(device=parted.Device) --- isys/isys.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'isys') diff --git a/isys/isys.py b/isys/isys.py index 589461764..e6c4b3476 100755 --- a/isys/isys.py +++ b/isys/isys.py @@ -462,7 +462,7 @@ def driveDict(klassArg): continue if device.startswith("sd"): - peddev = parted.PedDevice.get(dev['device']) + peddev = parted.getDevice(dev['device']) model = peddev.model # blacklist *STMF on power5 iSeries boxes -- cgit