diff options
author | antima-gupta <agupta@msystechnologies.com> | 2020-11-20 04:48:24 -0800 |
---|---|---|
committer | antima-gupta <agupta@msystechnologies.com> | 2020-11-24 01:07:29 -0800 |
commit | 188839a87f2c81f6a8072af28aa3db99ae7cd68b (patch) | |
tree | bd749ec2e42bcd65041a0eddc1dda160dcda927d /lib | |
parent | 81ee4dd334c763d6b419042b6c0fbdbc6ec0a6fb (diff) | |
download | chef-188839a87f2c81f6a8072af28aa3db99ae7cd68b.tar.gz |
Updated device_real method to fix aix test failure.
Signed-off-by: antima-gupta <agupta@msystechnologies.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/chef/provider/mount/mount.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/chef/provider/mount/mount.rb b/lib/chef/provider/mount/mount.rb index 71cecb47aa..71e103e4aa 100644 --- a/lib/chef/provider/mount/mount.rb +++ b/lib/chef/provider/mount/mount.rb @@ -203,7 +203,8 @@ class Chef end end # Removed "/" from the end of str, because it was causing idempotency issue. - @real_device.chomp("/") + # On AIX, device property value can be "/" + !RUBY_PLATFORM.match?(/aix/i) ? @real_device.chomp("/") : @real_device end def device_logstring |