changed aws.py
Opened this issue · 1 comments
apnero commented
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
jamesyonan commented
I refactored the dictionary comprehensions in Brenda 0.5.4, so it should be compatible with Python 2.6 now.
James