Skip to content

Issue with Python 2.7 with EU-West-1 #5

@springcoil

Description

@springcoil

Hi I am trying to recreate this with Python 2.7. On a Mac OS X

I tried changing the EC2.py file to change this to EU-West-1a

(py27)Peadars-MBP% fab pricing
ec2
Traceback (most recent call last):
File "/Users/peadarcoyle/anaconda/envs/py27/lib/python2.7/site-packages/fabric/main.py", line 743, in main
_args, *_kwargs
File "/Users/peadarcoyle/anaconda/envs/py27/lib/python2.7/site-packages/fabric/tasks.py", line 427, in execute
results[''] = task.run(_args, *_new_kwargs)
File "/Users/peadarcoyle/anaconda/envs/py27/lib/python2.7/site-packages/fabric/tasks.py", line 174, in run
return self.wrapped(_args, *_kwargs)
File "/Users/peadarcoyle/anaconda/envs/py27/lib/python2.7/site-packages/fabric/decorators.py", line 139, in decorated
decorated.return_value = func(_args, *_kwargs)
File "/Users/peadarcoyle/anaconda/envs/py27/lib/python2.7/site-packages/headintheclouds/tasks.py", line 118, in pricing
provider.pricing(sort)
File "/Users/peadarcoyle/anaconda/envs/py27/lib/python2.7/site-packages/headintheclouds/ec2.py", line 77, in pricing
availability_zone='eu-west-1a',
File "/Users/peadarcoyle/anaconda/envs/py27/lib/python2.7/site-packages/boto/ec2/connection.py", line 1013, in get_spot_price_history
[('item', SpotPriceHistory)], verb='POST')
File "/Users/peadarcoyle/anaconda/envs/py27/lib/python2.7/site-packages/boto/connection.py", line 1057, in get_list
raise self.ResponseError(response.status, response.reason, body)
boto.exception.EC2ResponseError: EC2ResponseError: 400 Bad Request

InvalidParameterValueInvalid availability zone: [eu-west-1a]e55c807d-96c2-4f7b-83f1-b9ff7dd65b83

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions