运行 Vagrantfile 时出错 - nil:NilClass 的未定义方法“concat”

Error while running Vagrantfile - undefined method `concat' for nil:NilClass

我们正在使用 vagrant with digital ocean 在数字海洋上生成节点。脚本 运行 成功到 2016 年 9 月 6 日。现在,在系统配置和脚本没有任何更改的情况下,我们在通过 Vagrantfile 创建节点时出现以下错误。

Bringing machine 'default' up with 'digital_ocean' provider... /root/.vagrant.d/gems/gems/vagrant-digitalocean-0.9.1/lib/vagrant-digitalocean/helpers/client.rb:66:in request': undefined methodconcat' for nil:NilClass (NoMethodError) from /root/.vagrant.d/gems/gems/vagrant-digitalocean-0.9.1/lib/vagrant-digitalocean/actions/setup_key.rb:23:in `call'

出现上述问题的可能原因是什么?

问题的根本原因是创建的插件只能处理数字海洋上 1 页或更少的 ssh 密钥。由于我的数字海洋帐户有超过一页的 ssh 密钥,因此出现此错误。

我已将错误记录到 Github, https://github.com/devopsgroup-io/vagrant-digitalocean/issues/251

在插件开发者修复错误之前,可以通过删除一些键以使其仅限于一页来解决问题。