diff options
author | Pete Cheslock <pcheslock@sonian.com> | 2012-11-19 16:40:02 -0500 |
---|---|---|
committer | Pete Cheslock <pcheslock@sonian.com> | 2012-11-19 16:49:46 -0500 |
commit | 433ff96fc4816bcd0f1d260a2ca5654131079178 (patch) | |
tree | 25f1553286a3701e5d39875589b3cfce170a33d8 | |
parent | 36616f741efb2def3f240dbb6917732900754638 (diff) | |
download | mixlib-shellout-433ff96fc4816bcd0f1d260a2ca5654131079178.tar.gz |
[COOK-1921] Look for explicit service name to see if exists
task_hash will have content if no other tasks currently exist and will cause resource.exists = true
-rw-r--r-- | providers/task.rb | 2 |
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 |