Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changed aws.py #2

Open
apnero opened this issue Nov 30, 2013 · 1 comment
Open

changed aws.py #2

apnero opened this issue Nov 30, 2013 · 1 comment

Comments

@apnero
Copy link

apnero commented Nov 30, 2013

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
Copy link
Owner

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

James

gwhobbs pushed a commit to gwhobbs/brenda that referenced this issue Aug 23, 2020
* Remove paracurl. Migrate to python3. Migrate to boto3

* More boto3 updates

* Update setup.py, remove .bak files

* Complete boto3 migration

* Fix boto object parsing

* More python3 updates

* Various fixes

* Minor fixes

* Remove TODO

* Update to AMI with python3 (jamesyonan#2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants