diff options
Diffstat (limited to 'lib/chef/knife/bootstrap.rb')
-rw-r--r-- | lib/chef/knife/bootstrap.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/knife/bootstrap.rb b/lib/chef/knife/bootstrap.rb index 8b3e3debbc..0229b97b0b 100644 --- a/lib/chef/knife/bootstrap.rb +++ b/lib/chef/knife/bootstrap.rb @@ -383,13 +383,13 @@ class Chef def ssh_command command = render_template + Chef::Log.debug("Bootstrap command has rendered as: ") + Chef::Log.debug(command) + if config[:use_sudo] command = config[:use_sudo_password] ? "echo '#{config[:ssh_password]}' | sudo -SH #{command}" : "sudo -H #{command}" end - Chef::Log.debug("Bootstrap command has rendered as: ") - Chef::Log.debug(command) - command end end |