lib/chef/knife/topo/processor/via_cookbook.rb in knife-topo-2.0.4 vs lib/chef/knife/topo/processor/via_cookbook.rb in knife-topo-2.0.5
- old
+ new
@@ -89,10 +89,11 @@
end
def cookbook_path
paths = @config['cookbook_path']
return unless paths
- paths.first
+ # cookbook path can be an array or a string
+ paths.is_a?(Array) ? (paths.first || './cookbooks') : paths
end
def upload_artifacts(context = {})
@cmd = context['cmd']
@cmd_args = context['cmd_args'] || []