diff options
author | tyler-ball <tball@chef.io> | 2019-04-23 10:29:33 -0600 |
---|---|---|
committer | Mark Anderson <mark@chef.io> | 2019-05-03 21:28:03 -0700 |
commit | 30eb283aa687d259a6131c261fc5674d2eb41c8a (patch) | |
tree | 50f3a0782c54e0a5d85767b8b9aea72eae7f0e53 /lib | |
parent | b134493e65d73636d25aa569f9b77f9c0b4c3f88 (diff) | |
download | chef-30eb283aa687d259a6131c261fc5674d2eb41c8a.tar.gz |
Read license-acceptance from chef config (knife.rb, client.rb)
Signed-off-by: tyler-ball <tball@chef.io>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/chef/application.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/chef/application.rb b/lib/chef/application.rb index d5b0847f11..2970921d1e 100644 --- a/lib/chef/application.rb +++ b/lib/chef/application.rb @@ -251,7 +251,12 @@ class Chef end def check_license_acceptance - LicenseAcceptance::Acceptor.check_and_persist!("chef-client", Chef::VERSION.to_s, logger: logger) + LicenseAcceptance::Acceptor.check_and_persist!( + "infra-client", + Chef::VERSION.to_s, + logger: logger, + provided: Chef::Config[:chef_license] + ) end # Actually run the application |