From: Nikos Skalkotos Date: Sun, 27 Jan 2013 18:06:17 +0000 (+0200) Subject: Don't call parted.Device.destroy() X-Git-Tag: v0.2.3~8 X-Git-Url: https://code.grnet.gr/git/snf-image-creator/commitdiff_plain/eb07a85fee47d1c5e7b1669f115af8ae604261e8 Don't call parted.Device.destroy() It behaves different in different pyparted versions and only causes problems. Let python do the garbage-collection... --- diff --git a/image_creator/bundle_volume.py b/image_creator/bundle_volume.py index 56d4a78..f2aa22a 100644 --- a/image_creator/bundle_volume.py +++ b/image_creator/bundle_volume.py @@ -239,7 +239,7 @@ class BundleVolume(object): ext.geometry.start, end=last.end) image_disk.commit() - image_dev.destroy() + # image_dev.destroy() return new_end def _map_partition(self, dev, num, start, end):