Berkshelf:无法设置不受支持的配置值

时间:2018-12-12 16:45:42

标签: chef berkshelf

当我在菜谱目录中运行berks(安装,打包或简单地运行)时,我收到以下消息,说Berks无法设置from lxml import etree parser = etree.HTMLParser() tree = etree.fromstring(table_doc, parser) days = tree.xpath('//tr/td[position()=4]') print ('Column 2\n========') for r in days: print (r.text) 的值。

ssl.verify

但是,我什至没有[jenkins@8ba245c234cb mycookbook_PR-58]$ berks /usr/local/rvm/gems/ruby-2.4.0@global/gems/berkshelf-7.0.7/lib/berkshelf/cached_cookbook.rb:97: warning: already initialized constant Berkshelf::CachedCookbook::DIRNAME_REGEXP /usr/local/rvm/rubies/ruby-2.4.0/lib/ruby/gems/2.4.0/gems/berkshelf-7.0.7/lib/berkshelf/cached_cookbook.rb:97: warning: previous definition of DIRNAME_REGEXP was here An error occurred while reading the Berksfile: Cannot set unsupported config value ssl.verify. 文件,因此我不认为我想在任何地方设置此变量。知道有什么问题吗?

Ruby 2.4.0,Berkshelf 7.0.7

1 个答案:

答案 0 :(得分:0)

我在[Berks安装SSL_Connect证书验证失败]中引用了我的旧答案:

尝试将以下代码段放入~/.berkshelf/config.json的berksfile配置中

{
  "ssl": {
    "verify": false
  }
}