Guest User

Untitled

a guest
Jan 19th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. fog = Fog::DNS.new({
  2. :provider => "AWS",
  3. :aws_access_key_id => "key",
  4. :aws_secret_access_key => "secret"
  5. })
  6.  
  7. fog.zones
  8.  
  9. ## Error
  10.  
  11. Excon::Errors::SocketError: wrong number of arguments (3 for 1)
  12. 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'
  13. from /Users/dan/.rvm/gems/ruby-1.9.2-p180/gems/excon-0.6.0/lib/excon/response.rb:47:in `parse'
  14. from /Users/dan/.rvm/gems/ruby-1.9.2-p180/gems/excon-0.6.0/lib/excon/connection.rb:140:in `request'
  15. from /Users/dan/.rvm/gems/ruby-1.9.2-p180/gems/fog-0.7.1/lib/fog/core/connection.rb:20:in `request'
  16. from /Users/dan/.rvm/gems/ruby-1.9.2-p180/gems/fog-0.7.1/lib/fog/dns/aws.rb:114:in `request'
  17. 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'
  18. 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'
  19. from /Users/dan/.rvm/gems/ruby-1.9.2-p180/gems/fog-0.7.1/lib/fog/core/collection.rb:123:in `lazy_load'
  20. from (eval):3:in `empty?'
  21. 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'
  22. from /Users/dan/.rvm/gems/ruby-1.9.2-p180/gems/formatador-0.1.3/lib/formatador.rb:92:in `indent'
  23. from /Users/dan/.rvm/gems/ruby-1.9.2-p180/gems/fog-0.7.1/lib/fog/core/collection.rb:63:in `inspect'
  24. from /Users/dan/.rvm/rubies/ruby-1.9.2-p180/bin/irb:16:in `<main>'
Add Comment
Please, Sign In to add comment