Split DiskDevice constructor in 2 parts
authorNikos Skalkotos <skalkoto@grnet.gr>
Fri, 16 Mar 2012 15:26:44 +0000 (17:26 +0200)
committerNikos Skalkotos <skalkoto@grnet.gr>
Fri, 16 Mar 2012 15:26:44 +0000 (17:26 +0200)
commit0db22eac4faec43647948a439a17541d81e92e5b
tree53eefcf6184d4793ed6c2b2943e2f28f8638cfea
parentf8119e65da2631879c332e56ba9a9e77d7034dbb
Split DiskDevice constructor in 2 parts

In the constructor only variable initialization is performed. This is
needed because the constructor is executed before the DiskDevice
instance is appended to the device list, and if something fails there,
then the resources may be cleaned up in an incorrect order.
image_creator/disk.py