summaryrefslogtreecommitdiff
path: root/lib/chef/knife/bootstrap.rb
diff options
context:
space:
mode:
authortyler-ball <tyleraball@gmail.com>2014-09-17 14:54:35 -0700
committertyler-ball <tyleraball@gmail.com>2014-09-29 08:31:08 -0700
commit75a90633b5015f91425644670d839377837fb8d3 (patch)
treedb329123e8080b0e148ead474eb22713488e8a71 /lib/chef/knife/bootstrap.rb
parent9d431178e1c9d98c6caed74366e9b9abd9d2404c (diff)
downloadchef-75a90633b5015f91425644670d839377837fb8d3.tar.gz
Fixing bad method definition
Diffstat (limited to 'lib/chef/knife/bootstrap.rb')
-rw-r--r--lib/chef/knife/bootstrap.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/knife/bootstrap.rb b/lib/chef/knife/bootstrap.rb
index 6d628f0224..a992cf5779 100644
--- a/lib/chef/knife/bootstrap.rb
+++ b/lib/chef/knife/bootstrap.rb
@@ -239,7 +239,7 @@ class Chef
def render_template
template_file = find_template
template = IO.read(template_file).chomp
- secret = encryption_secret_provided?(false) ? read_secret : nil
+ secret = encryption_secret_provided_ignore_encrypt_flag? ? read_secret : nil
context = Knife::Core::BootstrapContext.new(config, config[:run_list], Chef::Config, secret)
Erubis::Eruby.new(template).evaluate(context)
end