Skip to content

Commit

Permalink
Default to instances in correct zone when creating and resizing EBS v…
Browse files Browse the repository at this point in the history
…olumens.
  • Loading branch information
nfoti committed Jan 22, 2016
1 parent 812622f commit 53ab8b0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions starcluster/volume.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,9 @@ class VolumeCreator(cluster.Cluster):
"""
def __init__(self, ec2_conn, spot_bid=None, keypair=None,
key_location=None, host_instance=None, device='/dev/sdz',
image_id=static.BASE_AMI_32['us-east-1'],
instance_type="t1.micro", shutdown_instance=False,
detach_vol=False, mkfs_cmd='mkfs.ext3 -F',
resizefs_cmd='resize2fs', **kwargs):
image_id=static.BASE_AMI_32['us-east-1'], instance_type="t1.micro",
shutdown_instance=False, detach_vol=False,
mkfs_cmd='mkfs.ext3 -F', resizefs_cmd='resize2fs', **kwargs):
self._host_instance = host_instance
self._instance = None
self._volume = None
Expand Down

0 comments on commit 53ab8b0

Please sign in to comment.