summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@chef.io>2020-01-16 09:49:05 -0800
committerGitHub <noreply@github.com>2020-01-16 09:49:05 -0800
commit4e586321a728a3847c78da3d8e6e870b25b7ab77 (patch)
tree57aef5e943c23f89dea8bb2208dd442e8be2c940
parentee5d4142f7d9db19f42eaba023a826157c06ffcf (diff)
parent6d33c3b386ae672455926e18d1bdece1a55d8da4 (diff)
downloadchef-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.rb4
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 ||