summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-05-30 21:05:31 -0700
committerTim Smith <tsmith@chef.io>2018-08-13 15:06:21 -0700
commit5fbcc2e2b8f1ca172899a4e6b3495f22a67fd4cb (patch)
tree26f65f0f526416cd8c91078f6f7680f996bb1817
parent968f503119b8df8a23ab1c993024238a4759fdd6 (diff)
downloadchef-bootstrap_identity_file.tar.gz
Remove the deprecated knife bootstrap --identity-file flagbootstrap_identity_file
Remove this deprecated flag Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--chef-config/lib/chef-config/config.rb1
-rw-r--r--lib/chef/knife/bootstrap.rb6
2 files changed, 1 insertions, 6 deletions
diff --git a/chef-config/lib/chef-config/config.rb b/chef-config/lib/chef-config/config.rb
index 0046d25f78..2976e27322 100644
--- a/chef-config/lib/chef-config/config.rb
+++ b/chef-config/lib/chef-config/config.rb
@@ -767,7 +767,6 @@ module ChefConfig
default :bootstrap_template, nil
default :secret, nil
default :secret_file, nil
- default :identity_file, nil
default :host_key_verify, nil
default :forward_agent, nil
default :sort_status_reverse, nil
diff --git a/lib/chef/knife/bootstrap.rb b/lib/chef/knife/bootstrap.rb
index 19a7d6543e..3fd4094df6 100644
--- a/lib/chef/knife/bootstrap.rb
+++ b/lib/chef/knife/bootstrap.rb
@@ -78,10 +78,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",
@@ -434,7 +430,7 @@ class Chef
ssh.config[:ssh_gateway] = config[:ssh_gateway]
ssh.config[:ssh_gateway_identity] = config[:ssh_gateway_identity]
ssh.config[:forward_agent] = config[:forward_agent]
- ssh.config[:ssh_identity_file] = config[:ssh_identity_file] || config[:identity_file]
+ ssh.config[:ssh_identity_file] = config[:ssh_identity_file]
ssh.config[:manual] = true
ssh.config[:host_key_verify] = config[:host_key_verify]
ssh.config[:on_error] = true