summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasu1105 <vasundhara.jagdale@msystechnologies.com>2020-01-16 15:29:51 +0000
committerVasu1105 <vasundhara.jagdale@msystechnologies.com>2020-01-16 15:29:51 +0000
commit6d33c3b386ae672455926e18d1bdece1a55d8da4 (patch)
tree57aef5e943c23f89dea8bb2208dd442e8be2c940
parentf6c781bca28e6ec27e71f7d78b88563b9ffb5306 (diff)
downloadchef-vasundhara/Fix_for_windows_task_not_idempotent_windows19_16.tar.gz
Signed-off-by: Vasu1105 <vasundhara.jagdale@msystechnologies.com>
-rw-r--r--lib/chef/provider/windows_task.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/chef/provider/windows_task.rb b/lib/chef/provider/windows_task.rb
index 4eae92b614..90e0f3e9de 100644
--- a/lib/chef/provider/windows_task.rb
+++ b/lib/chef/provider/windows_task.rb
@@ -326,7 +326,6 @@ class Chef
# known issue : Since start_day and time is not mandatory while updating weekly frequency for which start_day is not mentioned by user idempotency
# is not gettting maintained as new_resource.start_day is nil and we fetch the day of week from start_day to set and its currently coming as nil and don't match with current_task
def task_needs_update?(task)
-
flag = false
if new_resource.frequency == :none
flag = (task.author != new_resource.user ||