summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-11-23 09:12:14 -0800
committerTim Smith <tsmith84@gmail.com>2020-11-23 09:12:14 -0800
commit60c073c09f874b0f92e4b2e0c996a9d841551aab (patch)
tree5d3d5f50bcfb48ff32000ba3d2e2ca9d1829ff3e
parent2478b8252d3c701da2e0fd4835028da53c59c498 (diff)
downloadchef-fix_aix.tar.gz
Fix failing AIX mount specsfix_aix
Use @phiggins suggestion here since it's nice and generic. Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/provider/mount/mount.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/mount/mount.rb b/lib/chef/provider/mount/mount.rb
index 71cecb47aa..0bd81d5453 100644
--- a/lib/chef/provider/mount/mount.rb
+++ b/lib/chef/provider/mount/mount.rb
@@ -203,7 +203,7 @@ class Chef
end
end
# Removed "/" from the end of str, because it was causing idempotency issue.
- @real_device.chomp("/")
+ @real_device == "/" ? @real_device : @real_device.chomp("/")
end
def device_logstring