diff options
author | antima-gupta <agupta@msystechnologies.com> | 2020-11-24 01:06:33 -0800 |
---|---|---|
committer | antima-gupta <agupta@msystechnologies.com> | 2020-11-24 01:07:29 -0800 |
commit | c600ba4886fd5ab9af333f57ae95d5ed6a71164b (patch) | |
tree | 235790bf59b98f6bd1f52b004f99ffc37071e2ea /lib/chef/provider/mount/mount.rb | |
parent | 188839a87f2c81f6a8072af28aa3db99ae7cd68b (diff) | |
download | chef-c600ba4886fd5ab9af333f57ae95d5ed6a71164b.tar.gz |
Fixed aix spec failure when the target state is to disable the mount.
Added spec for device property 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.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/chef/provider/mount/mount.rb b/lib/chef/provider/mount/mount.rb index 71e103e4aa..0bd81d5453 100644 --- a/lib/chef/provider/mount/mount.rb +++ b/lib/chef/provider/mount/mount.rb @@ -203,8 +203,7 @@ class Chef end end # Removed "/" from the end of str, because it was causing idempotency issue. - # On AIX, device property value can be "/" - !RUBY_PLATFORM.match?(/aix/i) ? @real_device.chomp("/") : @real_device + @real_device == "/" ? @real_device : @real_device.chomp("/") end def device_logstring |