From 7e8042b8170766575f8d6392ed97848e3d9a18e0 Mon Sep 17 00:00:00 2001 From: bbbco Date: Thu, 11 Feb 2016 18:06:06 -0500 Subject: [PATCH] Retry getting private key without the driver config if its not originally found --- lib/chef/provisioning/driver.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/chef/provisioning/driver.rb b/lib/chef/provisioning/driver.rb index 79ecbe4c..8ca84e04 100644 --- a/lib/chef/provisioning/driver.rb +++ b/lib/chef/provisioning/driver.rb @@ -303,7 +303,7 @@ def add_prefix(machine_spec, action_handler) end def get_private_key(name) - Cheffish.get_private_key(name, config) + Cheffish.get_private_key(name, config) || Cheffish.get_private_key(name) end end end