Created
February 24, 2015 20:16
-
-
Save gseats/3ad9bfc60e31fa7af8fd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
================================================================================ | |
Recipe Compile Error in /var/chef/cache/cookbooks/cerner_splunk/recipes/license_server.rb | |
================================================================================ | |
NoMethodError | |
------------- | |
undefined method `[]' for nil:NilClass | |
Cookbook Trace: | |
--------------- | |
/var/chef/cache/cookbooks/cerner_splunk/recipes/_configure_apps.rb:13:in `from_file' | |
/var/chef/cache/cookbooks/cerner_splunk/recipes/_configure.rb:25:in `from_file' | |
/var/chef/cache/cookbooks/cerner_splunk/recipes/_install.rb:98:in `from_file' | |
/var/chef/cache/cookbooks/cerner_splunk/recipes/_install_server.rb:13:in `from_file' | |
/var/chef/cache/cookbooks/cerner_splunk/recipes/license_server.rb:17:in `from_file' | |
Relevant File Content: | |
---------------------- | |
/var/chef/cache/cookbooks/cerner_splunk/recipes/_configure_apps.rb: | |
6: # Configures apps. | |
7: | |
8: attributes = node['splunk']['apps'] | |
9: | |
10: attributes_bag = CernerSplunk::DataBag.load(attributes['bag']) || {} | |
11: | |
12: # warn if the cluster's apps bag is not available on forwarders, but fail for any servers. | |
13>> cluster_bag = CernerSplunk::DataBag.load(CernerSplunk.my_cluster_data(node)['apps'], pick_context: CernerSplunk.keys(node), handle_load_failure: node['splunk']['node_type'] == :forwarder) || {} | |
14: | |
15: bag_bag = CernerSplunk::DataBag.load(cluster_bag['bag']) || {} | |
16: | |
17: apps = CernerSplunk::SplunkApp.merge_hashes(bag_bag, cluster_bag, attributes_bag, attributes) | |
18: | |
19: apps.each do |app_name, app_data| | |
20: splunk_app app_name do | |
21: apps_dir "#{node['splunk']['home']}/etc/apps" | |
22: action app_data['remove'] ? :remove : :create |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment