From 60c073c09f874b0f92e4b2e0c996a9d841551aab Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Mon, 23 Nov 2020 09:12:14 -0800 Subject: Fix failing AIX mount specs Use @phiggins suggestion here since it's nice and generic. Signed-off-by: Tim Smith --- lib/chef/provider/mount/mount.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1