Python2.6.9 ec2 amazon linux free tier
I had to change aws.py to fix a syntax error:
From:
def get_spot_request_dict(conf):
ec2 = get_ec2_conn(conf)
requests = ec2.get_all_spot_instance_requests()
return { sir.id: sir for sir in requests }
To:
def get_spot_request_dict(conf):
ec2 = get_ec2_conn(conf)
sirs = [ sir.id for sir in ec2.get_all_spot_instance_requests() ]
return sirs
Python2.6.9 ec2 amazon linux free tier I had to change aws.py to fix a syntax error:
From: def get_spot_request_dict(conf): ec2 = get_ec2_conn(conf) requests = ec2.get_all_spot_instance_requests() return { sir.id: sir for sir in requests }
To:
def get_spot_request_dict(conf): ec2 = get_ec2_conn(conf) sirs = [ sir.id for sir in ec2.get_all_spot_instance_requests() ] return sirs