On Tue, Oct 08, 2013 at 12:59:25PM +0100, Daniel Firth wrote:
+ except Exception as e:
+ os.remove(location)
+ self.app.status(msg='FAILED to deploy %s, reason: %s' %
+ (location, e))
+ self.app.status(msg='Removing disk image')
finally:
# Cleanup.
self.app.status(msg='Cleaning up')
Location is not always a file path. This will not work in general. -1.
Cleanup needs to be handled on a per-write-extension basis.