Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 341f8bcfa41a59b47bf952c1258a950c62aee3a8 1 parent e8bf821
@jtriley authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  starcluster/volume.py
View
2  starcluster/volume.py
@@ -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):
Please sign in to comment.
Something went wrong with that request. Please try again.