summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantima-gupta <agupta@msystechnologies.com>2020-11-20 04:48:24 -0800
committerantima-gupta <agupta@msystechnologies.com>2020-11-24 01:07:29 -0800
commit188839a87f2c81f6a8072af28aa3db99ae7cd68b (patch)
treebd749ec2e42bcd65041a0eddc1dda160dcda927d
parent81ee4dd334c763d6b419042b6c0fbdbc6ec0a6fb (diff)
downloadchef-188839a87f2c81f6a8072af28aa3db99ae7cd68b.tar.gz
Updated device_real method to fix aix test failure.
Signed-off-by: antima-gupta <agupta@msystechnologies.com>
-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 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