【发布时间】:2020-05-21 14:33:52
【问题描述】:
在这一行我收到错误
node.default['aem_dispatcher_cookbook']['ip_address'] = nodes.first('ipaddress').to_i
收到此错误
Recipe Compile Error in /root/.chef/local-mode-cache/cache/cookbooks/aem_dispatcher_cookbook/recipes/default.rb
================================================================================
TypeError --------- no implicit conversion of String into Integer
如果我删除 .to_i 会得到相同的结果。
【问题讨论】:
标签: ruby ruby-on-rails-3 ruby-on-rails-5 chef-infra chef-recipe