Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile Error on s3_file.rb #31

Open
3phil4mcr opened this issue Sep 13, 2017 · 2 comments
Open

Compile Error on s3_file.rb #31

3phil4mcr opened this issue Sep 13, 2017 · 2 comments

Comments

@3phil4mcr
Copy link

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 #Class:0x000000043b7e88

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.

@drusellers
Copy link

me too

@alanwds
Copy link

alanwds commented Jun 20, 2018

+1

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

No branches or pull requests

3 participants