Skip to content

Commit

Permalink
Fix where yes option wasn’t being passed to bootstrap
Browse files Browse the repository at this point in the history
without this fix, bootstrap will still prompt with confirmation such as “Node XXX exists, overwrite it? (Y/N)” when the yes option is used

Obvious fix.
  • Loading branch information
Chris Williams committed Dec 29, 2016
1 parent c655401 commit 8032a02
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/chef/knife/ec2_server_create.rb
Expand Up @@ -735,6 +735,7 @@ def bootstrap_common_params(bootstrap)
bootstrap.config[:bootstrap_vault_json] = locate_config_value(:bootstrap_vault_json)
bootstrap.config[:bootstrap_vault_item] = locate_config_value(:bootstrap_vault_item)
bootstrap.config[:use_sudo_password] = locate_config_value(:use_sudo_password)
bootstrap.config[:yes] = locate_config_value(:yes)
# Modify global configuration state to ensure hint gets set by
# knife-bootstrap
Chef::Config[:knife][:hints] ||= {}
Expand Down

0 comments on commit 8032a02

Please sign in to comment.