Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fog = Fog::DNS.new({
- :provider => "AWS",
- :aws_access_key_id => "key",
- :aws_secret_access_key => "secret"
- })
- fog.zones
- ## Error
- Excon::Errors::SocketError: wrong number of arguments (3 for 1)
- from /Users/dan/.rvm/gems/ruby-1.9.2-p180/gems/fog-0.7.1/lib/fog/core/connection.rb:16:in `block in request'
- from /Users/dan/.rvm/gems/ruby-1.9.2-p180/gems/excon-0.6.0/lib/excon/response.rb:47:in `parse'
- from /Users/dan/.rvm/gems/ruby-1.9.2-p180/gems/excon-0.6.0/lib/excon/connection.rb:140:in `request'
- from /Users/dan/.rvm/gems/ruby-1.9.2-p180/gems/fog-0.7.1/lib/fog/core/connection.rb:20:in `request'
- from /Users/dan/.rvm/gems/ruby-1.9.2-p180/gems/fog-0.7.1/lib/fog/dns/aws.rb:114:in `request'
- from /Users/dan/.rvm/gems/ruby-1.9.2-p180/gems/fog-0.7.1/lib/fog/dns/requests/aws/list_hosted_zones.rb:47:in `list_hosted_zones'
- from /Users/dan/.rvm/gems/ruby-1.9.2-p180/gems/fog-0.7.1/lib/fog/dns/models/aws/zones.rb:18:in `all'
- from /Users/dan/.rvm/gems/ruby-1.9.2-p180/gems/fog-0.7.1/lib/fog/core/collection.rb:123:in `lazy_load'
- from (eval):3:in `empty?'
- from /Users/dan/.rvm/gems/ruby-1.9.2-p180/gems/fog-0.7.1/lib/fog/core/collection.rb:70:in `block in inspect'
- from /Users/dan/.rvm/gems/ruby-1.9.2-p180/gems/formatador-0.1.3/lib/formatador.rb:92:in `indent'
- from /Users/dan/.rvm/gems/ruby-1.9.2-p180/gems/fog-0.7.1/lib/fog/core/collection.rb:63:in `inspect'
- from /Users/dan/.rvm/rubies/ruby-1.9.2-p180/bin/irb:16:in `<main>'
Add Comment
Please, Sign In to add comment