Skip to content
This repository has been archived by the owner on Mar 19, 2022. It is now read-only.

defaults don't work as expected #321

Closed
fonsecas72 opened this issue Nov 26, 2013 · 1 comment
Closed

defaults don't work as expected #321

fonsecas72 opened this issue Nov 26, 2013 · 1 comment

Comments

@fonsecas72
Copy link

I was getting:

/var/lib/gems/1.8/gems/knife-solo-0.4.0/lib/knife-solo/node_config_command.rb:44:in `exist?': can't convert Array into String (TypeError)
    from /var/lib/gems/1.8/gems/knife-solo-0.4.0/lib/knife-solo/node_config_command.rb:44:in `nodes_path'
    from /var/lib/gems/1.8/gems/knife-solo-0.4.0/lib/chef/knife/solo_cook.rb:117:in `sync_kitchen'
    from /var/lib/gems/1.8/gems/knife-solo-0.4.0/lib/chef/knife/solo_cook.rb:88:in `run'
    from /var/lib/gems/1.8/gems/knife-solo-0.4.0/lib/chef/knife/solo_cook.rb:198:in `time'
    from /var/lib/gems/1.8/gems/knife-solo-0.4.0/lib/chef/knife/solo_cook.rb:71:in `run'
    from /var/lib/gems/1.8/gems/chef-11.8.0/lib/chef/knife.rb:485:in `run_with_pretty_exceptions'
    from /var/lib/gems/1.8/gems/chef-11.8.0/lib/chef/knife.rb:174:in `run'
    from /var/lib/gems/1.8/gems/chef-11.8.0/lib/chef/application/knife.rb:133:in `run'
    from /var/lib/gems/1.8/gems/chef-11.8.0/bin/knife:25
    from /usr/local/bin/knife:19:in `load'
    from /usr/local/bin/knife:19

Which was fixed by manually placing

node_path './nodes'

in ~/.chef/knife.rb
shouldn't this be fetch automatically?

@tmatilai
Copy link
Collaborator

@hugofonseca Thanks for the report and sorry for the problem. This is caused by the changes in Chef 11.8.0 and is fixed in our master branch by #300.

You can work around it now by adding this to your knife.rb:

chef_repo_path "."

IMHO it's better to explicitly specify all *_path settings (using nil for the ones you are not using). But of course the defaults should work too. :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants