@@ -43,15 +43,16 @@ class VolumeCreator(cluster.Cluster):
4343 """
4444 def __init__ (self , ec2_conn , spot_bid = None , keypair = None ,
4545 key_location = None , host_instance = None , device = '/dev/sdz' ,
46- image_id = static .BASE_AMI_32 , instance_type = "t1.micro" ,
47- shutdown_instance = False , detach_vol = False ,
48- mkfs_cmd = 'mkfs.ext3 -F' , resizefs_cmd = 'resize2fs' , ** kwargs ):
46+ image_id = static .BASE_AMI_32 ['us-east-1' ],
47+ instance_type = "t1.micro" , shutdown_instance = False ,
48+ detach_vol = False , mkfs_cmd = 'mkfs.ext3 -F' ,
49+ resizefs_cmd = 'resize2fs' , ** kwargs ):
4950 self ._host_instance = host_instance
5051 self ._instance = None
5152 self ._volume = None
5253 self ._aws_block_device = device or '/dev/sdz'
5354 self ._real_device = None
54- self ._image_id = image_id or static .BASE_AMI_32
55+ self ._image_id = image_id or static .BASE_AMI_32 [ 'us-east-1' ]
5556 self ._instance_type = instance_type or 'm1.small'
5657 self ._shutdown = shutdown_instance
5758 self ._detach_vol = detach_vol
@@ -207,7 +208,7 @@ def is_valid(self, size, zone, device):
207208 try :
208209 self .validate (size , zone , device )
209210 return True
210- except exception .BaseException , e :
211+ except exception .BaseException as e :
211212 log .error (e .msg )
212213 return False
213214
0 commit comments