summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Timberman <joshua@opscode.com>2012-12-04 15:41:17 -0800
committerJoshua Timberman <joshua@opscode.com>2012-12-04 15:41:17 -0800
commitdec8f13775eb6ade75b85c757de0c529f0f1fbff (patch)
tree58ab6b19b37e53f4f63412ad3f377485dc7c1886
parentc26dff59613689069be89072bf68bd77d5d04147 (diff)
parent433ff96fc4816bcd0f1d260a2ca5654131079178 (diff)
downloadmixlib-shellout-dec8f13775eb6ade75b85c757de0c529f0f1fbff.tar.gz
Merge pull request #12 from pcheslock/master
COOK-1921 - Look for explicit taskname when creating new scheduled task
-rw-r--r--providers/task.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/providers/task.rb b/providers/task.rb
index 1185fc7..5b10c34 100644
--- a/providers/task.rb
+++ b/providers/task.rb
@@ -71,7 +71,7 @@ def load_current_resource
@current_resource.name(@new_resource.name)
task_hash = load_task_hash(@current_resource.name)
- if task_hash
+ if task_hash[:TaskName] == '\\' + @new_resource.name
@current_resource.exists = true
if task_hash[:Status] == "Running"
@current_resource.status = :running