From 446bed6641fe98dbaa5f46a7dd50a01625d2c5ab Mon Sep 17 00:00:00 2001 From: antima-gupta Date: Fri, 20 Nov 2020 06:00:32 -0800 Subject: Updated device_real method to fix aix test failure. Signed-off-by: antima-gupta --- lib/chef/provider/mount/mount.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.1