summaryrefslogtreecommitdiff
path: root/lib/chef/provider/windows_task.rb
diff options
context:
space:
mode:
authorVasu1105 <vasundhara.jagdale@msystechnologies.com>2018-01-05 06:35:04 +0000
committerVasu1105 <vasundhara.jagdale@msystechnologies.com>2018-01-05 07:01:36 +0000
commit1a7fe48b1158a04ce354416d27fc70d81c82b670 (patch)
tree4b2e79c118a7d655f3c109def3371ccee5b571fa /lib/chef/provider/windows_task.rb
parent84896c4e274d844356247d448b4d4c3fd2e1db61 (diff)
downloadchef-1a7fe48b1158a04ce354416d27fc70d81c82b670.tar.gz
Fixed review comments.
Signed-off-by: Vasu1105 <vasundhara.jagdale@msystechnologies.com>
Diffstat (limited to 'lib/chef/provider/windows_task.rb')
-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 135c422df8..d8f9094fd1 100644
--- a/lib/chef/provider/windows_task.rb
+++ b/lib/chef/provider/windows_task.rb
@@ -253,7 +253,7 @@ class Chef
false
elsif current_resource.random_delay.nil? && new_resource.random_delay == "PT0S" # when user sets random_dealy to 0 sec
false
- elsif current_resource.random_delay.nil? && !new_resource.random_delay.nil?
+ elsif current_resource.random_delay.nil?
true
else
ISO8601::Duration.new(current_resource.random_delay) != ISO8601::Duration.new(new_resource.random_delay)
@@ -266,7 +266,7 @@ class Chef
false
elsif current_resource.execution_time_limit.nil? && new_resource.execution_time_limit == "PT0S" # when user sets random_dealy to 0 sec
false
- elsif current_resource.execution_time_limit.nil? && !new_resource.execution_time_limit.nil?
+ elsif current_resource.execution_time_limit.nil?
true
else
ISO8601::Duration.new(current_resource.execution_time_limit) != ISO8601::Duration.new(new_resource.execution_time_limit)