Fix: Gerrit create_project check results 62/70462/1
authorEric Ball <eball@linuxfoundation.org>
Mon, 8 Aug 2022 14:59:17 +0000 (07:59 -0700)
committerEric Ball <eball@linuxfoundation.org>
Mon, 8 Aug 2022 14:59:17 +0000 (07:59 -0700)
commit9fad87b7762d073c6d44066a6fd7000870f6b9f8
treeb403769913c014837731d44a4a83dc913edaac55
parentbb1a42ba2fb11854c8e735c09ee8918dc283bab0
Fix: Gerrit create_project check results

The create_project method is not hitting the correct URL, but will
still often receive HTML from the server and a 200 status. We need to
check the validity of the returned data, and use the status of a bad
return as the exit code so that scripts can properly react to the
error encountered.

Issue: RELENG-4355
Change-Id: Icc3a769f0fa9aba61142bef11bd81821e1fa5356
Signed-off-by: Eric Ball <eball@linuxfoundation.org>
lftools/api/endpoints/gerrit.py