diff options
author | antima-gupta <agupta@msystechnologies.com> | 2020-11-20 06:00:32 -0800 |
---|---|---|
committer | antima-gupta <agupta@msystechnologies.com> | 2020-11-20 06:00:32 -0800 |
commit | 446bed6641fe98dbaa5f46a7dd50a01625d2c5ab (patch) | |
tree | 814ea51dbe4cdca71805a7c500ee853e7b15298c | |
parent | 83860fb124b5cf01eaf9391a5a56798958f7b141 (diff) | |
download | chef-temp_branch_for_aix_test_failure_fix.tar.gz |
Updated device_real method to fix aix test failure.temp_branch_for_aix_test_failure_fix
Signed-off-by: antima-gupta <agupta@msystechnologies.com>
-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 |