summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2017-10-30 10:52:53 -0700
committerTim Smith <tsmith@chef.io>2017-11-28 14:44:11 -0800
commitf5882ab83dffab4443ae9a244b642f80f62b3538 (patch)
tree424c52d289ffda9cfed07763fbdb85577830cc9a
parentca777b8d442c29aa7322e98eb8c3feb4f4c84936 (diff)
downloadchef-f5882ab83dffab4443ae9a244b642f80f62b3538.tar.gz
Fix windows_path converging on every run
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/provider/windows_path.rb10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/chef/provider/windows_path.rb b/lib/chef/provider/windows_path.rb
index b31789b4b9..e31ecaf2a0 100644
--- a/lib/chef/provider/windows_path.rb
+++ b/lib/chef/provider/windows_path.rb
@@ -37,12 +37,10 @@ class Chef
# the PATH environment variable. Ruby expects these to be expanded.
#
path = expand_path(new_resource.path)
- converge_by "Adding #{new_resource.path} to path environment variable" do
- declare_resource(:env, "path") do
- action :modify
- delim ::File::PATH_SEPARATOR
- value path.tr("/", '\\')
- end
+ declare_resource(:env, "path") do
+ action :modify
+ delim ::File::PATH_SEPARATOR
+ value path.tr("/", '\\')
end
end