summaryrefslogtreecommitdiff
path: root/lib/chef/provider/mount/mount.rb
diff options
context:
space:
mode:
authorantima-gupta <agupta@msystechnologies.com>2020-11-10 04:28:35 -0800
committerantima-gupta <agupta@msystechnologies.com>2020-11-11 03:45:31 -0800
commit2ca48d25ddfe4ccea309271a7831db971c7a603e (patch)
tree31f90f1c0a78d62e9a33f04cdb7761732a9618d4 /lib/chef/provider/mount/mount.rb
parentf583db2d28bb78622d55e6c4b1a26a64b55b1e41 (diff)
downloadchef-2ca48d25ddfe4ccea309271a7831db971c7a603e.tar.gz
Fixes for CIFS mount not idempotent issue.
Added spec for network device found as mounted. Removed '/' from end of the device value. Signed-off-by: antima-gupta <agupta@msystechnologies.com>
Diffstat (limited to 'lib/chef/provider/mount/mount.rb')
-rw-r--r--lib/chef/provider/mount/mount.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/chef/provider/mount/mount.rb b/lib/chef/provider/mount/mount.rb
index f6a7519c06..e065ce09e5 100644
--- a/lib/chef/provider/mount/mount.rb
+++ b/lib/chef/provider/mount/mount.rb
@@ -223,7 +223,8 @@ class Chef
@real_device = device_line.chomp unless device_line.nil?
end
end
- @real_device
+ # Removed "/" from the end of str, because it was causing idempotency issue.
+ @real_device.chomp("/")
end
def device_logstring