diff options
author | Lamont Granquist <lamont@chef.io> | 2020-01-16 09:49:05 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-16 09:49:05 -0800 |
commit | 4e586321a728a3847c78da3d8e6e870b25b7ab77 (patch) | |
tree | 57aef5e943c23f89dea8bb2208dd442e8be2c940 | |
parent | ee5d4142f7d9db19f42eaba023a826157c06ffcf (diff) | |
parent | 6d33c3b386ae672455926e18d1bdece1a55d8da4 (diff) | |
download | chef-4e586321a728a3847c78da3d8e6e870b25b7ab77.tar.gz |
Fix for windows task not idempotent on the windows19 and window… (#9223)
Fix for windows task not idempotent on the windows19 and windows 16
-rw-r--r-- | lib/chef/provider/windows_task.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/provider/windows_task.rb b/lib/chef/provider/windows_task.rb index 93347027a5..90e0f3e9de 100644 --- a/lib/chef/provider/windows_task.rb +++ b/lib/chef/provider/windows_task.rb @@ -328,7 +328,7 @@ class Chef def task_needs_update?(task) flag = false if new_resource.frequency == :none - flag = (task.account_information != new_resource.user || + flag = (task.author != new_resource.user || task.application_name != new_resource.command || description_needs_update?(task) || task.parameters != new_resource.command_arguments.to_s || @@ -352,7 +352,7 @@ class Chef current_task_trigger[:type] != new_task_trigger[:type] || current_task_trigger[:random_minutes_interval].to_i != new_task_trigger[:random_minutes_interval].to_i || current_task_trigger[:minutes_interval].to_i != new_task_trigger[:minutes_interval].to_i || - task.account_information.to_s.casecmp(new_resource.user.to_s) != 0 || + task.author.to_s.casecmp(new_resource.user.to_s) != 0 || task.application_name != new_resource.command || description_needs_update?(task) || task.parameters != new_resource.command_arguments.to_s || |