summaryrefslogtreecommitdiff
path: root/lib/chef/resource/mount.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/resource/mount.rb')
-rw-r--r--lib/chef/resource/mount.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/resource/mount.rb b/lib/chef/resource/mount.rb
index b800387975..a9e6b3374b 100644
--- a/lib/chef/resource/mount.rb
+++ b/lib/chef/resource/mount.rb
@@ -45,7 +45,7 @@ class Chef
property :device_type, [String, Symbol],
description: "The type of device: :device, :label, or :uuid",
- coerce: proc { |arg| arg.kind_of?(String) ? arg.to_sym : arg },
+ coerce: proc { |arg| arg.is_a?(String) ? arg.to_sym : arg },
default: :device,
equal_to: RUBY_PLATFORM =~ /solaris/i ? %i{ device } : %i{ device label uuid }
@@ -62,7 +62,7 @@ class Chef
property :options, [Array, String, nil],
description: "An array or comma separated list of options for the mount.",
- coerce: proc { |arg| arg.kind_of?(String) ? arg.split(",") : arg },
+ coerce: proc { |arg| arg.is_a?(String) ? arg.split(",") : arg },
default: %w{defaults}
property :dump, [Integer, FalseClass],