RiotGamesCookbooks / artifact-cookbook

Provides your cookbooks with the Artifact Deploy LWRP
Other
133 stars 91 forks source link

NoMethodError: undefined method `split' for :mid:Symbol on Chef Server 13.7.16 #174

Open SergioMorenoFernandez opened 6 years ago

SergioMorenoFernandez commented 6 years ago

Hi,

Artifact cookbook give me an error when try to connect with nexus, after I upgraded the chef client.

chef-client -v
Chef: 13.7.16
  NoMethodError
  -------------
  undefined method `split' for :mid:Symbol

  Cookbook Trace:
  ---------------
  c:/chef/cache/cookbooks/artifact/libraries/chef_artifact_nexus.rb:19:in `remote'
  c:/chef/cache/cookbooks/artifact/libraries/chef_artifact_nexus.rb:50:in `retrieve_from_nexus'
  c:/chef/cache/cookbooks/artifact/providers/file.rb:68:in `block in class_from_file'

  Resource Declaration:
  ---------------------
  # In c:/chef/cache/cookbooks/partner/recipes/com.rb

  124: artifact_file "#{Chef::Config['file_cache_path']}/#{node['moneytrans']['Partner']['artifact_name']}.tar.gz" do
  125:   location String.new("#{node['moneytrans']['artifact_groupid']}:#{node['moneytrans']['Partner']['artifact_name']}:#{node['moneytrans']['Partner']['extension']}:#{node['moneytrans']['Partner']['artifact_version']}")
  126:   owner node['moneytrans']['artifact_owner']
  127:   group node['moneytrans']['artifact_group']
  128:   nexus_configuration nexus_configuration_object
  129:   action :create
  130:
  131:   after_download Proc.new {
  132:     needs_install = true
  133:   }
  134: end
  135:

  Compiled Resource:
  ------------------
  # Declared in c:/chef/cache/cookbooks/partner/recipes/com.rb:124:in `from_file'

  artifact_file("c:/chef/cache/pm.tar.gz") do
    action [:create]
    default_guard_interpreter :default
    declared_type :artifact_file
    cookbook_name "partner"
    recipe_name "com"
    location "eu.moneytrans:pm:tgz:3.3.0"
    owner "me"
    group "mes"
    nexus_configuration #<Chef::Artifact::NexusConfiguration:0x00000000064c0918 @password="MASKED", @ssl_verify=true>
    after_download #<Proc:0x000000000649e7a0@c:/chef/cache/cookbooks/partner/recipes/com.rb:131>
    path "c:/chef/cache/pm.tar.gz"
  end

  System Info:
  ------------
  chef_version=13.7.16
  platform=windows
  platform_version=10.0.14393
  ruby=ruby 2.4.3p205 (2017-12-14 revision 61247) [x64-mingw32]
  program_name=C:/opscode/chef/bin/chef-client
  executable=C:/opscode/chef/bin/chef-client

Best regards,