saltstack/salt-cloud — pull request #445 by kjkuan (2013-03-14 14:48:05+00:00)
Title: Fix problems of not using location(ec2 region) defined in a VM profile during create()

Tried salt-cloud with a fresh git clone, didn't work for me. These are the fixes that I had to make it work with my `cloud` and `cloud.profiles` configs. Basically, I'm using the `ec2` provider with a VM profile that specifies a location override:

master:
provider: ec2
image: ami-be1230fb
size: Micro Instance
location: us-west-1
ssh_username: ubuntu
script: wget-bootstrap
make_master: True
minion:
master: 127.0.0.1
grains:
cheese: edam

I only did this for the ec2 provider, the `aws` provider might also have the same problem.
Please review and merge whatever that makes sense to you as I'm not yet familiar with the code base yet. Thanks!