Fix uploading workshop user's ssh pubkey to Gerrit 20/14920/1
authorTrevor Bramwell <tbramwell@linuxfoundation.org>
Wed, 13 Mar 2019 22:41:12 +0000 (15:41 -0700)
committerTrevor Bramwell <tbramwell@linuxfoundation.org>
Wed, 13 Mar 2019 22:41:12 +0000 (15:41 -0700)
commit85ec3aecfd60543a36a8c4ec325ceb547cfb1e12
tree454757639db8dae34bd58cfc73d0401c082031b3
parent540e5f5c19bcee3ca0a5a20c37f4015750c24db9
Fix uploading workshop user's ssh pubkey to Gerrit

By default the 'uri' module will use "Content-Type: 'raw'", while Gerrit
only accepts 'text/plain' when uploading sshkeys. Forcing basic auth
also ensures the request passes username/password instead of looking for
an 401 HTTP response before submitting the data.

Change-Id: Idadfa50a4b6e81f6c8cfc5d6f839c53df8be5417
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
init/playbooks/site.yaml