Use default user SSH credentials

Use default user SSH credentials rather than forcing the
'releasestatus' user and creds in ~/.gerritssh. This allows
to run locally with your own credentials for testing.

Change-Id: I497f338197cb5ba6c39aa0e5d8b001382ea1f3f5
Reviewed-on: https://review.openstack.org/30882
Approved: Thierry Carrez <thierry@openstack.org>
Reviewed-by: Thierry Carrez <thierry@openstack.org>
Tested-by: Jenkins
This commit is contained in:
Thierry Carrez 2013-05-29 15:48:29 +02:00 committed by Jenkins
parent d4830d9cc9
commit 9d51c88208
1 changed files with 1 additions and 3 deletions

View File

@ -36,10 +36,8 @@ class GerritReviews():
age = '2mon'
host = "review.openstack.org"
port = "29418"
username = "releasestatus"
keyfile = os.getenv('HOME') + "/.gerritssh/id_rsa"
base_cmd = ['/usr/bin/ssh', '-p', port, '-i', keyfile, '-l', username,
base_cmd = ['/usr/bin/ssh', '-p', port,
host, 'gerrit', 'query', '--format=JSON',
'branch:master', 'AND', 'NOT', 'age:%s' % age]