summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Mundrawala <jdmundrawala@gmail.com>2015-03-02 12:02:35 -0800
committerJay Mundrawala <jdmundrawala@gmail.com>2015-03-02 12:02:35 -0800
commit43c2ec8642e1a5383e0d1088fb2e16a10cc4db1c (patch)
treee04eb2c3b43062f72f945326551ececbe095501f
parent14474f59eac093756594d03e88189f6d60132191 (diff)
downloadchef-43c2ec8642e1a5383e0d1088fb2e16a10cc4db1c.tar.gz
Add parens to highlight precedencepr-2988
-rw-r--r--lib/chef/knife/bootstrap.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/chef/knife/bootstrap.rb b/lib/chef/knife/bootstrap.rb
index 18a2a16181..e168a6bd9b 100644
--- a/lib/chef/knife/bootstrap.rb
+++ b/lib/chef/knife/bootstrap.rb
@@ -313,7 +313,8 @@ class Chef
# chef-vault integration must use the new client-side hawtness, otherwise to use the
# new client-side hawtness, just delete your validation key.
- if chef_vault_handler.doing_chef_vault? || Chef::Config[:validation_key] && !File.exist?(File.expand_path(Chef::Config[:validation_key]))
+ if chef_vault_handler.doing_chef_vault? ||
+ (Chef::Config[:validation_key] && !File.exist?(File.expand_path(Chef::Config[:validation_key])))
client_builder.run
chef_vault_handler.run(node_name: config[:chef_node_name])