Open 3phil4mcr opened 7 years ago
When running the host_agent recipe i'm getting the following error from the s3_file.rb resource:
undefined local variable or method `use_inline_resources' for #
/var/chef/cache/cookbooks/dynatrace-appmon/resources/s3_file.rb:22:in `class_from_file'
/var/chef/cache/cookbooks/dynatrace-appmon/resources/s3_file.rb:
15: property :region, String 16: property :access_key_id, String 17: property :secret_access_key, String 18: property :owner, String 19: property :group, String 20: property :mode, String 21: 22>> use_inline_resources 23: 24: action :create do 25: require 'aws-sdk' 26: 27: # Detecting if we want to upload or download from S3 28: upload_to_s3 = false 29: if source.start_with?('s3://') 30: s3_url = source.dup 31: elsif target.start_with?('s3://')
My system run info is provided below:
chef_version=12.21.3 platform=redhat platform_version=7.3 ruby=ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux] program_name=chef-client worker: ppid=28803;start=11:06:34; executable=/opt/chef/bin/chef-client
This is on an aws instance.
me too
+1
When running the host_agent recipe i'm getting the following error from the s3_file.rb resource:
NameError
undefined local variable or method `use_inline_resources' for #
Cookbook Trace:
/var/chef/cache/cookbooks/dynatrace-appmon/resources/s3_file.rb:22:in `class_from_file'
Relevant File Content:
/var/chef/cache/cookbooks/dynatrace-appmon/resources/s3_file.rb:
15: property :region, String 16: property :access_key_id, String 17: property :secret_access_key, String 18: property :owner, String 19: property :group, String 20: property :mode, String 21: 22>> use_inline_resources 23: 24: action :create do 25: require 'aws-sdk' 26: 27: # Detecting if we want to upload or download from S3 28: upload_to_s3 = false 29: if source.start_with?('s3://') 30: s3_url = source.dup 31: elsif target.start_with?('s3://')
My system run info is provided below:
System Info:
chef_version=12.21.3 platform=redhat platform_version=7.3 ruby=ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux] program_name=chef-client worker: ppid=28803;start=11:06:34; executable=/opt/chef/bin/chef-client
This is on an aws instance.