diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-03-24 10:38:08 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-03-24 10:38:08 -0700 |
commit | aa7ef36c0f8cab2703683981b8b56189daee650e (patch) | |
tree | b0fc8f36fabd770e5fef548cbd67dc460593e944 /spec | |
parent | 3116f5a5dc8d80216e2c28e1be52c97e7eb4da8c (diff) | |
download | chef-aa7ef36c0f8cab2703683981b8b56189daee650e.tar.gz |
If append_log_file is set then use the -L flag
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/resource/chef_client_cron_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/resource/chef_client_cron_spec.rb b/spec/unit/resource/chef_client_cron_spec.rb index 094bedc91a..5ce3db84dd 100644 --- a/spec/unit/resource/chef_client_cron_spec.rb +++ b/spec/unit/resource/chef_client_cron_spec.rb @@ -103,7 +103,7 @@ describe Chef::Resource::ChefClientCron do it "appends to the log file appending if set" do resource.append_log_file true - expect(provider.cron_command).to eql("/bin/sleep 123; /opt/chef/bin/chef-client >> /var/log/chef/client.log 2>&1") + expect(provider.cron_command).to eql("/bin/sleep 123; /opt/chef/bin/chef-client -L /var/log/chef/client.log") end end end |