Permalink
Browse files

Stop checking for a specific list of valid hosts for endpoints when t…

…he user specifies

a specific EC2_URL env variable.  More flexibility for use with new or different endpoints.
  • Loading branch information...
1 parent 5b0446a commit 709ce651d1d1c7f0b5381ee587ba43e84e4d7e57 @grempe committed Jun 29, 2010
Showing with 0 additions and 8 deletions.
  1. +0 −2 lib/AWS/Autoscaling.rb
  2. +0 −2 lib/AWS/Cloudwatch.rb
  3. +0 −2 lib/AWS/ELB.rb
  4. +0 −2 lib/AWS/RDS.rb
View
@@ -7,8 +7,6 @@ module Autoscaling
# export AS_URL='http://autoscaling.amazonaws.com'
if ENV['AS_URL']
AS_URL = ENV['AS_URL']
- VALID_HOSTS = ['http://autoscaling.amazonaws.com']
- raise ArgumentError, "Invalid AS_URL environment variable : #{AS_URL}" unless VALID_HOSTS.include?(AS_URL)
DEFAULT_HOST = URI.parse(AS_URL).host
else
# Default US API endpoint
View
@@ -8,8 +8,6 @@ module Cloudwatch
# export AWS_CLOUDWATCH_URL='https://montoring.amazonaws.com'
if ENV['AWS_CLOUDWATCH_URL']
AWS_CLOUDWATCH_URL = ENV['AWS_CLOUDWATCH_URL']
- VALID_HOSTS = ['monitoring.amazonaws.com']
- raise ArgumentError, "Invalid AWS_CLOUDWATCH_URL environment variable : #{AWS_CLOUDWATCH_URL}" unless VALID_HOSTS.include?(AWS_CLOUDWATCH_URL)
DEFAULT_HOST = URI.parse(AWS_CLOUDWATCH_URL).host
else
# Default US API endpoint
View
@@ -8,8 +8,6 @@ module ELB
# export ELB_URL='https://elasticloadbalancing.amazonaws.com'
if ENV['ELB_URL']
ELB_URL = ENV['ELB_URL']
- VALID_HOSTS = ['elasticloadbalancing.amazonaws.com']
- raise ArgumentError, "Invalid ELB_URL environment variable : #{ELB_URL}" unless VALID_HOSTS.include?(ELB_URL)
DEFAULT_HOST = URI.parse(ELB_URL).host
else
# Default US API endpoint
View
@@ -8,8 +8,6 @@ module RDS
# export RDS_URL='https://rds.amazonaws.com'
if ENV['RDS_URL']
RDS_URL = ENV['RDS_URL']
- VALID_HOSTS = ['rds.amazonaws.com']
- raise ArgumentError, "Invalid RDS_URL environment variable : #{RDS_URL}" unless VALID_HOSTS.include?(RDS_URL)
DEFAULT_HOST = URI.parse(RDS_URL).host
else
# Default US API endpoint

0 comments on commit 709ce65

Please sign in to comment.