summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2017-09-26 13:27:13 -0700
committerTim Smith <tsmith@chef.io>2017-09-26 13:27:13 -0700
commit87c13a35620d8cb68768b4896a9b935215f12d46 (patch)
treef494d9d072b2a7e422c28ca9b0a3425ed4b83363
parenta51cda521a6f9cc6371cddf3eeff64adf69630ae (diff)
downloadchef-knife_ssh_identity_file.tar.gz
Remove deprecated knife ssh --identity-file optionknife_ssh_identity_file
This was replaced with --ssh_identity_file Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/knife/ssh.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/chef/knife/ssh.rb b/lib/chef/knife/ssh.rb
index ae14ce9954..29cab2ba01 100644
--- a/lib/chef/knife/ssh.rb
+++ b/lib/chef/knife/ssh.rb
@@ -102,10 +102,6 @@ class Chef
:description => "Enable SSH agent forwarding",
:boolean => true
- option :identity_file,
- :long => "--identity-file IDENTITY_FILE",
- :description => "The SSH identity file used for authentication. [DEPRECATED] Use --ssh-identity-file instead."
-
option :ssh_identity_file,
:short => "-i IDENTITY_FILE",
:long => "--ssh-identity-file IDENTITY_FILE",
@@ -557,8 +553,7 @@ class Chef
end
def configure_ssh_identity_file
- # config[:identity_file] is DEPRECATED in favor of :ssh_identity_file
- config[:ssh_identity_file] = get_stripped_unfrozen_value(config[:ssh_identity_file] || config[:identity_file] || Chef::Config[:knife][:ssh_identity_file])
+ config[:ssh_identity_file] = get_stripped_unfrozen_value(config[:ssh_identity_file] || Chef::Config[:knife][:ssh_identity_file])
end
def configure_ssh_gateway_identity