diff options
author | Adam DePue <adepue@hearsaycorp.com> | 2013-06-12 23:02:42 +0000 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2013-10-10 11:29:25 -0700 |
commit | 573112e65b8d94e01937af66098ce177aacb4b2b (patch) | |
tree | 70e46b7c2df21d166de95d9476a5d7327bd42454 /lib/chef/knife/bootstrap.rb | |
parent | 58906445acfac7fc24b6e0afb8e6874292e1ec6d (diff) | |
download | chef-573112e65b8d94e01937af66098ce177aacb4b2b.tar.gz |
Single ticks are required to escape passwords with special characters in them
Diffstat (limited to 'lib/chef/knife/bootstrap.rb')
-rw-r--r-- | lib/chef/knife/bootstrap.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/knife/bootstrap.rb b/lib/chef/knife/bootstrap.rb index 0bce29e4fe..377e8f8736 100644 --- a/lib/chef/knife/bootstrap.rb +++ b/lib/chef/knife/bootstrap.rb @@ -249,7 +249,7 @@ class Chef command = render_template(read_template) if config[:use_sudo] - command = config[:use_sudo_password] ? "echo #{config[:ssh_password]} | sudo -S #{command}" : "sudo #{command}" + command = config[:use_sudo_password] ? "echo '#{config[:ssh_password]}' | sudo -S #{command}" : "sudo #{command}" end command |