Skip to content

Commit

Permalink
Shunt stderr/ioctl warnings to a tmp log file for knife configure.
Browse files Browse the repository at this point in the history
This error is thrown when piping the user password into the Knife
plugin, which is the only way (currently) to do this non-interactively.
  • Loading branch information
fnichol committed Sep 10, 2014
1 parent b11a108 commit f6145bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/knife/server/credentials.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def client_omnibus_cmd
"--admin-client-key /etc/chef-server/chef-webui.pem",
"--validation-client-name chef-validator",
"--validation-key /etc/chef-server/chef-validator.pem",
"--defaults --yes"
"--defaults --yes 2>> /tmp/chef-server-install-errors.txt"
].join(" ")
end
end
Expand Down
2 changes: 1 addition & 1 deletion spec/knife/server/credientials_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
"--admin-client-key /etc/chef-server/chef-webui.pem",
"--validation-client-name chef-validator",
"--validation-key /etc/chef-server/chef-validator.pem",
"--defaults --yes"
"--defaults --yes 2>> /tmp/chef-server-install-errors.txt"
].join(" "))

omnibus_subject.create_root_client
Expand Down

0 comments on commit f6145bf

Please sign in to comment.