diff --git a/lib/kitchen/provisioner/policyfile_zero.rb b/lib/kitchen/provisioner/policyfile_zero.rb index c4b159e53..a5a90071b 100644 --- a/lib/kitchen/provisioner/policyfile_zero.rb +++ b/lib/kitchen/provisioner/policyfile_zero.rb @@ -46,7 +46,7 @@ class PolicyfileZero < ChefBase default_config :chef_zero_port, 8889 default_config :chef_client_path do |provisioner| - File.join(provisioner[:chef_omnibus_root], %w[bin chef-client]) + File.join(provisioner[:chef_omnibus_root], provisioner.shell.chef_client_file) end # Emit a warning that Policyfile stuff is still experimental. @@ -69,7 +69,7 @@ def create_sandbox # (see Base#run_command) def run_command level = config[:log_level] == :info ? :auto : config[:log_level] - chef_client_bin = sudo(config[:chef_client_path]) + chef_client_bin = shell.sudo(config[:chef_client_path]) cmd = "#{chef_client_bin} --local-mode" args = [ @@ -85,7 +85,7 @@ def run_command args << "--logfile #{config[:log_file]}" end - Util.wrap_command([cmd, *args].join(" ")) + shell.wrap_command([cmd, *args].join(" ")) end private