Fix proposal scripts

The proposal scripts fail currently with a "Host key verification
changed", change hostname to review.opendev.org to avoid this.

Sample failure:
http://logs.openstack.org/periodic/opendev.org/openstack/training-guides/master/propose-translation-update/7186ef3/job-output.txt.gz#_2019-04-20_07_16_37_149203

Change-Id: Ib91b7c594b974756a71626b903785add64c86a08
This commit is contained in:
Andreas Jaeger 2019-04-20 09:26:54 +02:00
parent d30040c817
commit af8b4b76b8

View File

@ -39,7 +39,7 @@ function setup_commit_message {
# existing change for use in the commit message.
local change_info
change_info=$(ssh -p 29418 $USERNAME@review.openstack.org \
change_info=$(ssh -p 29418 $USERNAME@review.opendev.org \
gerrit query --current-patch-set status:open project:$PROJECT \
owner:$USERNAME branch:$BRANCH topic:$TOPIC)
CHANGE_NUM=$(echo "$change_info" | grep "^ number:" | awk '{print $2}')
@ -77,7 +77,7 @@ function check_already_approved {
# run.
if [ -n "$CHANGE_ID" ]; then
# Use the JSON format since it is very compact and easy to grep
change_info=$(ssh -p 29418 proposal-bot@review.openstack.org gerrit query --current-patch-set --format=JSON $CHANGE_ID)
change_info=$(ssh -p 29418 proposal-bot@review.opendev.org gerrit query --current-patch-set --format=JSON $CHANGE_ID)
# Check for:
# 1) Workflow approval (+1)
# 2) no -1/-2 by Zuul