Don't call parted.Device.destroy()
authorNikos Skalkotos <skalkoto@grnet.gr>
Sun, 27 Jan 2013 18:06:17 +0000 (20:06 +0200)
committerNikos Skalkotos <skalkoto@grnet.gr>
Sun, 27 Jan 2013 18:06:17 +0000 (20:06 +0200)
It behaves different in different pyparted versions and only causes
problems. Let python do the garbage-collection...

image_creator/bundle_volume.py

index 56d4a78..f2aa22a 100644 (file)
@@ -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):