Permalink
Browse files

volume: fix bug when cleaning up failed volumes

Set self._volume = None after cleaning up a failed volume instead of
deleting the self._volume attribute altogether.
  • Loading branch information...
1 parent e8bf821 commit 341f8bcfa41a59b47bf952c1258a950c62aee3a8 @jtriley committed Feb 14, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 starcluster/volume.py
View
@@ -257,7 +257,7 @@ def _delete_new_volume(self):
newvol.detach(force=True)
self.ec2.wait_for_volume(newvol, status='available')
newvol.delete()
- del self._volume
+ self._volume = None
@print_timing("Creating volume")
def create(self, volume_size, volume_zone, name=None, tags=None):

0 comments on commit 341f8bc

Please sign in to comment.