Ensure GERRIT_PORT is an integer
The Gerrit port configuration option must be an integer
otherwise paramiko will complain.
Change-Id: I97d79940ceba97b1f4b3d20c4ba93b6fc4394e17
Reviewed-on: https://review.openstack.org/34121
Reviewed-by: Eric Erfanian <eric.erfanian@gmail.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Approved: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
diff --git a/jeepyb/cmd/manage_projects.py b/jeepyb/cmd/manage_projects.py
index d455e0f..b78d1a2 100644
--- a/jeepyb/cmd/manage_projects.py
+++ b/jeepyb/cmd/manage_projects.py
@@ -296,7 +296,7 @@
LOCAL_GIT_DIR = defaults.get('local-git-dir', '/var/lib/git')
ACL_DIR = defaults.get('acl-dir')
GERRIT_HOST = defaults.get('gerrit-host')
- GERRIT_PORT = defaults.get('gerrit-port', '29418')
+ GERRIT_PORT = int(defaults.get('gerrit-port', '29418'))
GERRIT_USER = defaults.get('gerrit-user')
GERRIT_KEY = defaults.get('gerrit-key')
GERRIT_GITID = defaults.get('gerrit-committer')