diff options
Diffstat (limited to 'lib/chef/shell/ext.rb')
-rw-r--r-- | lib/chef/shell/ext.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/shell/ext.rb b/lib/chef/shell/ext.rb index 5260832e91..843126b4f2 100644 --- a/lib/chef/shell/ext.rb +++ b/lib/chef/shell/ext.rb @@ -47,8 +47,8 @@ module Shell unless jobs.respond_to?(:session_select) def jobs.select_shell_session(target_context) # rubocop:disable Lint/NestedMethodDefinition - session = if target_context.kind_of?(Class) - select_session_by_context { |main| main.kind_of?(target_context) } + session = if target_context.is_a?(Class) + select_session_by_context { |main| main.is_a?(target_context) } else select_session_by_context { |main| main.equal?(target_context) } end |