jamesyonan / brenda

Blender render farm software for Amazon Web Services
Other
246 stars 67 forks source link

changed aws.py #2

Open apnero opened 10 years ago

apnero commented 10 years ago

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 10 years ago

I refactored the dictionary comprehensions in Brenda 0.5.4, so it should be compatible with Python 2.6 now.

James