Dynatrace / Dynatrace-AppMon-Chef

Installs the Dynatrace Application Monitoring solution using Chef.
MIT License
12 stars 15 forks source link

Recipe Compile Error in /tmp/kitchen/cache/cookbooks/dynatrace/resources/configure_ini_files.rb #38

Open skabba opened 5 years ago

skabba commented 5 years ago

I am getting an FATAL error: FATAL: Chef::Exceptions::ValidationFailed: Property name must be one of: String! You passed nil. On line 11 11>> attribute :name, :kind_of => String, :default => nil of configure_ini_files.rb. Just by trying to run this cookbook.


       Recipe Compile Error in /tmp/kitchen/cache/cookbooks/dynatrace/resources/configure_ini_files.rb
       ================================================================================

       Chef::Exceptions::ValidationFailed
       ----------------------------------
       Property name must be one of: String!  You passed nil.

       Cookbook Trace:
       ---------------
         /tmp/kitchen/cache/cookbooks/dynatrace/resources/configure_ini_files.rb:11:in `class_from_file'

       Relevant File Content:
       ----------------------
       /tmp/kitchen/cache/cookbooks/dynatrace/resources/configure_ini_files.rb:

         4:  #
         5:  # Copyright 2015, Dynatrace
         6:  #
         7:
         8:  actions :run
         9:  default_action :run
        10:
        11>> attribute :name,                 :kind_of => String, :default => nil
        12:  attribute :installer_prefix_dir, :kind_of => String, :default => nil
        13:  attribute :ini_files,            :kind_of => Array,  :default => []
        14:  attribute :variables,            :kind_of => Hash,   :default => {}
        15:  attribute :dynatrace_owner,      :kind_of => String, :default => 'dynatrace'
        16:  attribute :dynatrace_group,      :kind_of => String, :default => 'dynatrace'
        17:

       System Info:
       ------------
       chef_version=14.11.21
       platform=centos
       platform_version=7.6.1810
       ruby=ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-linux]
       program_name=/opt/chef/bin/chef-client
       executable=/opt/chef/bin/chef-client

       Running handlers:
       [2019-04-01T09:32:26+00:00] ERROR: Running exception handlers
       Running handlers complete
       [2019-04-01T09:32:26+00:00] ERROR: Exception handlers complete
       Chef Client failed. 0 resources updated in 05 seconds
       [2019-04-01T09:32:26+00:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out
       [2019-04-01T09:32:26+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
       [2019-04-01T09:32:26+00:00] FATAL: Chef::Exceptions::ValidationFailed: Property name must be one of: String!  You passed nil.```