Skip to content
Browse files

setting the endpoint in the region info

  • Loading branch information...
1 parent 81479cd commit f09c49bab919f05283b271aeba72f470ea983ac5 @buzztroll buzztroll committed Oct 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 phantomweb/workload.py
View
2 phantomweb/workload.py
@@ -20,7 +20,7 @@ def _get_phantom_con(userobj):
uparts = urlparse.urlparse(url)
is_secure = uparts.scheme == 'https'
- region = RegionInfo(uparts.hostname)
+ region = RegionInfo(endpoint=uparts.hostname)
con = boto.ec2.autoscale.AutoScaleConnection(aws_access_key_id=userobj._user_dbobject.access_key, aws_secret_access_key=userobj._user_dbobject.access_secret, is_secure=is_secure, port=uparts.port, region=region, validate_certs=False)
con.host = uparts.hostname
return con

0 comments on commit f09c49b

Please sign in to comment.
Something went wrong with that request. Please try again.