fog/fog — Issue #648: NoMethodError: undefined method `match' for nil <-- key_factory.rb:48:in `load_data_private_key`
Author: drnic
Created: 2011-12-09 16:39:26+00:00
State: open

Anyone know what causes this? I wasn't having this issue last night but its happening in 1.8.7/1.9.3 and various different bootstrap/create attempts:

``` ruby
>> hdb = connection.servers.bootstrap
NoMethodError: undefined method `match' for nil:NilClass
from /Users/drnic/.rvm/gems/ruby-1.8.7-p352/gems/net-ssh-2.2.1/lib/net/ssh/key_factory.rb:48:in `load_data_private_key'
from /Users/drnic/.rvm/gems/ruby-1.8.7-p352/gems/net-ssh-2.2.1/lib/net/ssh/authentication/key_manager.rb:218:in `load_identities'
from /Users/drnic/.rvm/gems/ruby-1.8.7-p352/gems/net-ssh-2.2.1/lib/net/ssh/authentication/key_manager.rb:207:in `map'
from /Users/drnic/.rvm/gems/ruby-1.8.7-p352/gems/net-ssh-2.2.1/lib/net/ssh/authentication/key_manager.rb:207:in `load_identities'
from /Users/drnic/.rvm/gems/ruby-1.8.7-p352/gems/net-ssh-2.2.1/lib/net/ssh/authentication/key_manager.rb:100:in `each_identity'
from /Users/drnic/.rvm/gems/ruby-1.8.7-p352/gems/net-ssh-2.2.1/lib/net/ssh/authentication/methods/publickey.rb:19:in `authenticate'
from /Users/drnic/.rvm/gems/ruby-1.8.7-p352/gems/net-ssh-2.2.1/lib/net/ssh/authentication/session.rb:73:in `authenticate'
from /Users/drnic/.rvm/gems/ruby-1.8.7-p352/gems/net-ssh-2.2.1/lib/net/ssh/authentication/session.rb:65:in `each'
from /Users/drnic/.rvm/gems/ruby-1.8.7-p352/gems/net-ssh-2.2.1/lib/net/ssh/authentication/session.rb:65:in `authenticate'
from /Users/drnic/.rvm/gems/ruby-1.8.7-p352/gems/net-ssh-2.2.1/lib/net/ssh.rb:190:in `start'
from /Users/drnic/.rvm/gems/ruby-1.8.7-p352/gems/fog-1.1.1/lib/fog/core/ssh.rb:52:in `run'
from /Users/drnic/.rvm/gems/ruby-1.8.7-p352/gems/fog-1.1.1/lib/fog/aws/models/compute/server.rb:205:in `setup'
from /Users/drnic/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/1.8/timeout.rb:67:in `timeout'
from /Users/drnic/.rvm/gems/ruby-1.8.7-p352/gems/fog-1.1.1/lib/fog/aws/models/compute/server.rb:204:in `setup'
from /Users/drnic/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/1.8/timeout.rb:67:in `timeout'
from /Users/drnic/.rvm/gems/ruby-1.8.7-p352/gems/fog-1.1.1/lib/fog/aws/models/compute/server.rb:202:in `setup'
from /Users/drnic/.rvm/gems/ruby-1.8.7-p352/gems/fog-1.1.1/lib/fog/aws/models/compute/servers.rb:102:in `bootstrap'
from (irb):5
from /Users/drnic/.rvm/gems/ruby-1.8.7-p352/gems/fog-1.1.1/bin/fog:40
from /Users/drnic/.rvm/gems/ruby-1.8.7-p352/bin/fog:19:in `load'
from /Users/drnic/.rvm/gems/ruby-1.8.7-p352/bin/fog:19
```