summaryrefslogtreecommitdiff
path: root/lib/chef/provider/windows_task.rb
diff options
context:
space:
mode:
authorVasu1105 <vasundhara.jagdale@msystechnologies.com>2017-12-19 11:01:50 +0000
committerVasu1105 <vasundhara.jagdale@msystechnologies.com>2018-01-05 06:38:55 +0000
commit84896c4e274d844356247d448b4d4c3fd2e1db61 (patch)
tree10e7ba386ae42783768bba29486f42a65717916e /lib/chef/provider/windows_task.rb
parentdba1aa7fd9e8358abea5e1dcd26e2430645d5c8b (diff)
downloadchef-84896c4e274d844356247d448b4d4c3fd2e1db61.tar.gz
Fixed chefstyle issue
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.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/chef/provider/windows_task.rb b/lib/chef/provider/windows_task.rb
index 8f9995203f..135c422df8 100644
--- a/lib/chef/provider/windows_task.rb
+++ b/lib/chef/provider/windows_task.rb
@@ -251,9 +251,9 @@ class Chef
def random_delay_updated?
if new_resource.random_delay.nil?
false
- elsif current_resource.random_delay.nil? && new_resource.random_delay == "PT0S" # when user sets random_dealy to 0 sec
+ 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? && !new_resource.random_delay.nil?
true
else
ISO8601::Duration.new(current_resource.random_delay) != ISO8601::Duration.new(new_resource.random_delay)
@@ -264,9 +264,9 @@ class Chef
def execution_time_limit_updated?
if new_resource.execution_time_limit.nil?
false
- elsif current_resource.execution_time_limit.nil? && new_resource.execution_time_limit == "PT0S" # when user sets random_dealy to 0 sec
+ 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? && !new_resource.execution_time_limit.nil?
true
else
ISO8601::Duration.new(current_resource.execution_time_limit) != ISO8601::Duration.new(new_resource.execution_time_limit)