diff --git a/lib/kitchen/provisioner/chef_infra.rb b/lib/kitchen/provisioner/chef_infra.rb index 9cbb522f5..960fe2477 100644 --- a/lib/kitchen/provisioner/chef_infra.rb +++ b/lib/kitchen/provisioner/chef_infra.rb @@ -108,6 +108,8 @@ def add_optional_chef_client_args!(args) end args << "--logfile #{config[:log_file]}" if config[:log_file] + # Added for Chef-Client 19+ + args << "--chef-license-key=#{config[:chef_license_key]}" if config[:chef_license_key] # these flags are chef-client local mode only and will not work # on older versions of chef-client