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

Weird behavior when using multiple services #152

Open
l1x opened this issue Nov 22, 2012 · 0 comments
Open

Weird behavior when using multiple services #152

l1x opened this issue Nov 22, 2012 · 0 comments

Comments

@l1x
Copy link

l1x commented Nov 22, 2012

This does not work:

def connect(emr=true, ec2=false)
options = {:region => @config["aws_region"]}
  if ec2
    @ec2_interface  = RightAws::Ec2.new(
      @config["aws_access_key_id"],
      @config["aws_secret_key_id"],
      options
    )
  end
  if emr
    @emr_interface  = RightAws::EmrInterface.new(
      @config["aws_access_key_id"],
      @config["aws_secret_key_id"],
      options
    )
  end
end

This does:

def connect(emr=true, ec2=false)
options = {:region => @config["aws_region"]}
  if ec2
    @ec2_interface  = RightAws::Ec2.new(
      @config["aws_access_key_id"],
      @config["aws_secret_key_id"],
      options
    )
  end
  if emr
    @emr_interface  = RightAws::EmrInterface.new(
      @config["aws_access_key_id"],
      @config["aws_secret_key_id"],
      :region => @config["aws_region"]
    )
  end
end

The error:

E, [2012-11-21T18:10:19.793520 #43919] ERROR -- : us-west-2.us-west-2.ec2.amazonaws.com temporarily unavailable: (getaddrinfo: nodename nor servname provided, or not known)
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

1 participant