Vagrant: 关于“错误元素类型”的 Ruby 警告

创建于 2016-11-09  ·  3评论  ·  资料来源: hashicorp/vagrant

流浪版本

流浪者 1.8.7

主机操作系统

Darwin Thrills-iMac 15.6.0 Darwin Kernel Version 15.6.0:Thu Sep 1 15:01:16 PDT 2016; 根:xnu-3248.60.11 ~2/RELEASE_X86_64 x86_64

来宾操作系统

Linux localhost.localdomain 3.10.0-327.3.1.el7.x86_64 #1 SMP 2015 年 12 月 9 日星期三 14:09:15 UTC x86_64 x86_64 x86_64 GNU/Linux

流浪文件

(不适用这发生在我什至做 Vagrant Up 之前。它发生在我使用 vagrant plugin install 安装插件时)

调试输出

提供指向包含完整调试输出的 GitHub Gist 的链接:
https://www.vagrantup.com/docs/other/debugging.html。 调试输出应该
会很长。 不要在问题中粘贴调试输出,只需粘贴
链接到要点。

[swirsky@Thrills-iMac vm-local-shared (develop)]$ vagrant plugin install salty-vagrant-grains
Installing the 'salty-vagrant-grains' plugin. This can take a few minutes...
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: wrong element type String at 0 (expected array)
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: ignoring wrong elements is deprecated, remove them explicitly
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: this causes ArgumentError in the next release
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: wrong element type String at 1 (expected array)
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: ignoring wrong elements is deprecated, remove them explicitly
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: this causes ArgumentError in the next release
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: wrong element type String at 2 (expected array)
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: ignoring wrong elements is deprecated, remove them explicitly
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: this causes ArgumentError in the next release
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: wrong element type String at 3 (expected array)
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: ignoring wrong elements is deprecated, remove them explicitly
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: this causes ArgumentError in the next release
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: wrong element type String at 4 (expected array)
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: ignoring wrong elements is deprecated, remove them explicitly
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: this causes ArgumentError in the next release
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: wrong element type String at 5 (expected array)
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: ignoring wrong elements is deprecated, remove them explicitly
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: this causes ArgumentError in the next release
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: wrong element type String at 6 (expected array)
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: ignoring wrong elements is deprecated, remove them explicitly
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: this causes ArgumentError in the next release
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: wrong element type String at 7 (expected array)
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: ignoring wrong elements is deprecated, remove them explicitly
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: this causes ArgumentError in the next release
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: wrong element type String at 8 (expected array)
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: ignoring wrong elements is deprecated, remove them explicitly
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: this causes ArgumentError in the next release
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: wrong element type String at 9 (expected array)
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: ignoring wrong elements is deprecated, remove them explicitly
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: this causes ArgumentError in the next release
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: wrong element type String at 10 (expected array)
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: ignoring wrong elements is deprecated, remove them explicitly
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: this causes ArgumentError in the next release
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: wrong element type String at 11 (expected array)
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: ignoring wrong elements is deprecated, remove them explicitly
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: this causes ArgumentError in the next release
Installed the plugin 'salty-vagrant-grains (0.0.2)'!

预期行为

应该发生什么?

它似乎有效,但我没想到所有这些 ruby​​ 错误消息

实际行为

究竟发生了什么?

尽管有警告,但一切似乎都正常

重现步骤

  1. 安装流浪者 1.8.7
  2. 运行插件安装命令
  3. 查看红宝石警告

参考

最有用的评论

我降级到 1.8.6,这个问题就消失了(以及我无法在本地或从 hashcorp 地图集添加盒子的另一个问题)

我认为也许应该撤回 1.8.7!

所有3条评论

vagrant 1.8.7有同样的问题。
Ubuntu 16.04.1 amd64
1) 下载salt-vagrant-demo git repo。
2) cd salt-vagrant-demo
3) 运行vagrant status (会收到警告)。
4) 运行vagrant up (会得到异常)。
回溯这里:
有关更多信息,请参阅要点

我降级到 1.8.6,这个问题就消失了(以及我无法在本地或从 hashcorp 地图集添加盒子的另一个问题)

我认为也许应该撤回 1.8.7!

我要锁定这个问题,因为它已经关闭了_30天_⏳。 这有助于我们的维护人员发现并专注于活跃的问题。

如果您发现了与此类似的问题,请打开一个新问题并完成问题模板,以便我们获取进一步调查所需的所有详细信息。

此页面是否有帮助?
0 / 5 - 0 等级

相关问题

dorinlazar picture dorinlazar  ·  3评论

DreadPirateShawn picture DreadPirateShawn  ·  3评论

StefanScherer picture StefanScherer  ·  3评论

tomhking picture tomhking  ·  3评论

janw-me picture janw-me  ·  3评论