diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2017-03-30 14:40:02 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2017-03-31 13:03:08 -0700 |
commit | 5fb94bf7bd7d22fd3a1cff22f5861b0fbf32adb1 (patch) | |
tree | 2af84f37a5de0fff1f167f01bdb068274fe6b153 /lib/chef/knife/ssh.rb | |
parent | ac21083e7480c90a79cad36f05da973bc681f110 (diff) | |
download | chef-5fb94bf7bd7d22fd3a1cff22f5861b0fbf32adb1.tar.gz |
apply knife search node fuzzifier to knife ssh
extracts out a common 'fuzz' option to Chef::Search::Query so that anyone can
use it.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/knife/ssh.rb')
-rw-r--r-- | lib/chef/knife/ssh.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/knife/ssh.rb b/lib/chef/knife/ssh.rb index d79565991f..f048c7268d 100644 --- a/lib/chef/knife/ssh.rb +++ b/lib/chef/knife/ssh.rb @@ -1,6 +1,6 @@ # # Author:: Adam Jacob (<adam@chef.io>) -# Copyright:: Copyright 2009-2016, Chef Software Inc. +# Copyright:: Copyright 2009-2017, Chef Software Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -223,7 +223,7 @@ class Chef end @search_count = 0 - query.search(:node, @name_args[0], filter_result: required_attributes) do |item| + query.search(:node, @name_args[0], filter_result: required_attributes, fuzz: true) do |item| @search_count += 1 # we should skip the loop to next iteration if the item # returned by the search is nil |