diff options
author | dheerajd-msys <dheeraj.dubey@msystechnologies.com> | 2018-06-05 16:05:38 +0530 |
---|---|---|
committer | dheerajd-msys <dheeraj.dubey@msystechnologies.com> | 2018-06-08 17:55:54 +0530 |
commit | 0b65d289ca7986170d446401d4abbef18f88499e (patch) | |
tree | c5767ed302df7d8767a9df283474d22c22330d11 | |
parent | 8f068aef016c19fe53ef8c8e7b9627780518af15 (diff) | |
download | chef-0b65d289ca7986170d446401d4abbef18f88499e.tar.gz |
fix review comments
Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
-rw-r--r-- | lib/chef/provider/mount/windows.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/chef/provider/mount/windows.rb b/lib/chef/provider/mount/windows.rb index 8e5addccef..590b2bfa52 100644 --- a/lib/chef/provider/mount/windows.rb +++ b/lib/chef/provider/mount/windows.rb @@ -40,10 +40,8 @@ class Chef def load_current_resource if is_volume(@new_resource.device) - @mount = Chef::Util::Windows::Volume.new(@new_resource.name) - elsif @new_resource.name.include?(":") && !@new_resource.mount_point #assume network drive - @mount = Chef::Util::Windows::NetUse.new(@new_resource.name) - else + @mount = Chef::Util::Windows::Volume.new(@new_resource.mount_point) + else #assume network drive @mount = Chef::Util::Windows::NetUse.new(@new_resource.mount_point) end |