summaryrefslogtreecommitdiff
path: root/lib/chef/provider/windows_task.rb
diff options
context:
space:
mode:
authorVasu1105 <vasundhara.jagdale@msystechnologies.com>2017-12-19 10:35:30 +0000
committerVasu1105 <vasundhara.jagdale@msystechnologies.com>2018-01-05 06:38:55 +0000
commitdba1aa7fd9e8358abea5e1dcd26e2430645d5c8b (patch)
tree369a6fb7f476667c42730ae1e957877d2d9ca966 /lib/chef/provider/windows_task.rb
parentaefec12e4657657b1227af0be373c1644cddbe1e (diff)
downloadchef-dba1aa7fd9e8358abea5e1dcd26e2430645d5c8b.tar.gz
Fixed chefstyle issues
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 d2d7397352..8f9995203f 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)