From 53ab8b094b4c3e92dafd8a25d2158ffb0e4209ad Mon Sep 17 00:00:00 2001 From: Nick Foti Date: Fri, 22 Jan 2016 11:41:29 -0800 Subject: [PATCH] Default to instances in correct zone when creating and resizing EBS volumens. --- starcluster/volume.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/starcluster/volume.py b/starcluster/volume.py index 06b2eda5f..2e036d87f 100644 --- a/starcluster/volume.py +++ b/starcluster/volume.py @@ -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