diff options
author | Tim Smith <tsmith@chef.io> | 2017-10-30 10:52:53 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2017-11-28 14:44:11 -0800 |
commit | f5882ab83dffab4443ae9a244b642f80f62b3538 (patch) | |
tree | 424c52d289ffda9cfed07763fbdb85577830cc9a /lib/chef/provider/windows_path.rb | |
parent | ca777b8d442c29aa7322e98eb8c3feb4f4c84936 (diff) | |
download | chef-f5882ab83dffab4443ae9a244b642f80f62b3538.tar.gz |
Fix windows_path converging on every run
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/provider/windows_path.rb')
-rw-r--r-- | lib/chef/provider/windows_path.rb | 10 |
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 |